Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: mojo/public/cpp/bindings/tests/equals_unittest.cc

Issue 2603893002: Remove mojo::Map. (Closed)
Patch Set: rebase Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/tests/BUILD.gn ('k') | mojo/public/cpp/bindings/tests/map_common_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/tests/equals_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/equals_unittest.cc b/mojo/public/cpp/bindings/tests/equals_unittest.cc
index 466b58d35fe8f89c52c01ccb6c2399c7c21df464..4862b93f3a22888327a97de3fed28fe8ed8d5144 100644
--- a/mojo/public/cpp/bindings/tests/equals_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/equals_unittest.cc
@@ -84,37 +84,6 @@ TEST_F(EqualsTest, Array) {
EXPECT_TRUE(n1.Equals(n2));
}
-TEST_F(EqualsTest, Map) {
- auto n1(NamedRegion::New());
- n1->name.emplace("foo");
- n1->rects.emplace();
- n1->rects->push_back(CreateRect());
-
- Map<std::string, NamedRegionPtr> m1;
- m1.insert("foo", std::move(n1));
-
- decltype(m1) m2;
- EXPECT_FALSE(m1.Equals(m2));
-
- m2.insert("bar", m1.at("foo").Clone());
- EXPECT_FALSE(m1.Equals(m2));
-
- m2 = m1.Clone();
- m2.at("foo")->name.emplace("monkey");
- EXPECT_FALSE(m1.Equals(m2));
-
- m2 = m1.Clone();
- m2.at("foo")->rects->push_back(Rect::New());
- EXPECT_FALSE(m1.Equals(m2));
-
- m2.at("foo")->rects->resize(1);
- (*m2.at("foo")->rects)[0]->width = 1;
- EXPECT_FALSE(m1.Equals(m2));
-
- m2 = m1.Clone();
- EXPECT_TRUE(m1.Equals(m2));
-}
-
TEST_F(EqualsTest, InterfacePtr) {
base::MessageLoop message_loop;
« no previous file with comments | « mojo/public/cpp/bindings/tests/BUILD.gn ('k') | mojo/public/cpp/bindings/tests/map_common_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698