Skip to content

Commit 8d8603b

Browse files
mkruskal-googlecopybara-github
authored andcommitted
Mark new framework tests for CI coverage
This is temporary until we move our conformance tests into language-specific directories. PiperOrigin-RevId: 763113814
1 parent 2981829 commit 8d8603b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

conformance/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ test_suite(
121121
tests = [
122122
"binary_wireformat_test",
123123
"failure_list_trie_node_test",
124+
"naming_test",
124125
"test_manager_test",
126+
"testee_test",
125127
],
126128
)
127129

conformance/testee_test.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ TEST(TesteeTest, BinaryToBinary) {
5757
RequestEquals(R"pb(
5858
protobuf_payload: "wire"
5959
requested_output_format: PROTOBUF
60-
message_type: "protobuf_test_messages.google.protobuf.TestAllTypesProto2"
60+
message_type: "protobuf_test_messages.proto2.TestAllTypesProto2"
6161
test_category: BINARY_TEST
6262
)pb")))
6363
.WillOnce(RespondWith(R"pb(runtime_error: "error")pb"));
@@ -83,7 +83,7 @@ TEST(TesteeTest, TextToText) {
8383
RequestEquals(R"pb(
8484
text_payload: "text"
8585
requested_output_format: TEXT_FORMAT
86-
message_type: "protobuf_test_messages.google.protobuf.TestAllTypesProto2"
86+
message_type: "protobuf_test_messages.proto2.TestAllTypesProto2"
8787
test_category: TEXT_FORMAT_TEST
8888
)pb")))
8989
.WillOnce(RespondWith(R"pb(runtime_error: "error")pb"));
@@ -109,7 +109,7 @@ TEST(TesteeTest, TextPrintUnknownFields) {
109109
RequestEquals(R"pb(
110110
protobuf_payload: "wire"
111111
requested_output_format: TEXT_FORMAT
112-
message_type: "protobuf_test_messages.google.protobuf.TestAllTypesProto2"
112+
message_type: "protobuf_test_messages.proto2.TestAllTypesProto2"
113113
test_category: BINARY_TEST
114114
print_unknown_fields: true
115115
)pb")))
@@ -136,7 +136,7 @@ TEST(TesteeTest, JsonToJson) {
136136
RunTest("Required.Proto2.JsonInput.foo.JsonOutput", RequestEquals(R"pb(
137137
json_payload: "json"
138138
requested_output_format: JSON
139-
message_type: "protobuf_test_messages.google.protobuf.TestAllTypesProto2"
139+
message_type: "protobuf_test_messages.proto2.TestAllTypesProto2"
140140
test_category: JSON_TEST
141141
)pb")))
142142
.WillOnce(RespondWith(R"pb(runtime_error: "error")pb"));
@@ -161,7 +161,7 @@ TEST(TesteeTest, JsonIgnoreUnknownParsing) {
161161
RequestEquals(R"pb(
162162
json_payload: "json"
163163
requested_output_format: PROTOBUF
164-
message_type: "protobuf_test_messages.google.protobuf.TestAllTypesProto2"
164+
message_type: "protobuf_test_messages.proto2.TestAllTypesProto2"
165165
test_category: JSON_IGNORE_UNKNOWN_PARSING_TEST
166166
)pb")))
167167
.WillOnce(RespondWith(R"pb(runtime_error: "error")pb"));
@@ -187,7 +187,7 @@ TEST(TesteeTest, InvalidResponse) {
187187
RequestEquals(R"pb(
188188
protobuf_payload: "wire"
189189
requested_output_format: PROTOBUF
190-
message_type: "protobuf_test_messages.google.protobuf.TestAllTypesProto2"
190+
message_type: "protobuf_test_messages.proto2.TestAllTypesProto2"
191191
test_category: BINARY_TEST
192192
)pb")))
193193
.WillOnce(Return(std::string("\004")));
@@ -216,7 +216,7 @@ TEST(TesteeTest, DuplicateTestName) {
216216
RequestEquals(R"pb(
217217
protobuf_payload: "wire"
218218
requested_output_format: PROTOBUF
219-
message_type: "protobuf_test_messages.google.protobuf.TestAllTypesProto2"
219+
message_type: "protobuf_test_messages.proto2.TestAllTypesProto2"
220220
test_category: BINARY_TEST
221221
)pb")))
222222
.WillRepeatedly(Return(std::string("\004")));

src/google/protobuf/BUILD.bazel

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,9 +1600,7 @@ cc_library(
16001600
hdrs = ["test_textproto.h"],
16011601
strip_include_prefix = "/src",
16021602
visibility = [
1603-
"//editions:__pkg__",
1604-
"//pkg:__pkg__",
1605-
"//src/google/protobuf:__subpackages__",
1603+
"//:__subpackages__",
16061604
],
16071605
deps = [
16081606
":protobuf",

0 commit comments

Comments
 (0)