aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA Googler <no-reply@google.com>2023-02-28 07:11:33 -0800
committerBlaze Rules Copybara <blaze-rules@google.com>2023-02-28 07:12:00 -0800
commite51f588e5932966ab9e63e0b0f6de6f740cf04c4 (patch)
treeabe7d63924e45ba453e08f3070eb11b60a5ac0fc
parent33aba33e1bec7e75487676c792e5690937933ab7 (diff)
downloadbazelbuild-rules-proto-e51f588e5932966ab9e63e0b0f6de6f740cf04c4.tar.gz
Internal change
PiperOrigin-RevId: 512924375
-rw-r--r--tests/rules/proto_descriptor_set/proto_descriptor_set_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rules/proto_descriptor_set/proto_descriptor_set_test.cc b/tests/rules/proto_descriptor_set/proto_descriptor_set_test.cc
index c48b8c4..3044e4c 100644
--- a/tests/rules/proto_descriptor_set/proto_descriptor_set_test.cc
+++ b/tests/rules/proto_descriptor_set/proto_descriptor_set_test.cc
@@ -19,8 +19,9 @@
#include <string>
#include <vector>
-#include "google/protobuf/descriptor.pb.h"
+#include "google/protobuf/descriptor.proto.h"
#include "gtest/gtest.h"
+#include "testing/base/public/gmock.h"
#include "tests/utils/workspace_constants.h"
#include "tools/cpp/runfiles/runfiles.h"
@@ -72,7 +73,7 @@ void AssertFileDescriptorSetContains(
std::vector<std::string> actual_proto_files =
ReadFileDescriptorSet(
GetRlocation(path));
- EXPECT_EQ(expected_proto_files, actual_proto_files);
+ EXPECT_THAT(actual_proto_files, ::testing::IsSupersetOf(expected_proto_files));
}
} // namespace
@@ -88,7 +89,6 @@ TEST(ProtoDescriptorSetTest, WellKnownProtos) {
{
"google/protobuf/any.proto",
"google/protobuf/api.proto",
- "google/protobuf/compiler/plugin.proto",
"google/protobuf/descriptor.proto",
"google/protobuf/duration.proto",
"google/protobuf/empty.proto",