Skip to content

Commit

Permalink
Add plugin_format_flag to the Bazel's tests.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 412840929
  • Loading branch information
comius authored and copybara-github committed Nov 29, 2021
1 parent 0c32009 commit cd4bc7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public static void setup(MockToolsConfig config) throws IOException {
" name = 'j2objc_proto_toolchain',",
" blacklisted_protos = [':j2objc_proto_blacklist'],",
" command_line = '--PLUGIN_j2objc_out=file_dir_mapping,generate_class_mappings:$(OUT)',",
" plugin_format_flag = '--plugin=protoc-gen-PLUGIN_j2objc=%s', ",
" visibility = ['//visibility:public'],",
" plugin = '//third_party/java/j2objc:proto_plugin',",
" runtime = '//third_party/java/j2objc:proto_runtime',",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ public void testProtoToolchainForJ2ObjcFlag() throws Exception {
"proto_lang_toolchain(",
" name = 'alt_j2objc_proto_toolchain',",
" command_line = '--PLUGIN_j2objc_out=file_dir_mapping,generate_class_mappings:$(OUT)',",
" plugin_format_flag = '--plugin=protoc-gen-PLUGIN_j2objc=%s', ",
" plugin = ':alt_proto_plugin',",
" runtime = ':alt_proto_runtime',",
" blacklisted_protos = [':excluded_protos'],",
Expand Down

0 comments on commit cd4bc7c

Please sign in to comment.