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

Unified Diff: mojo/public/tests/bindings/sample_service_unittest.cc

Issue 141893004: Support default values for arrays of POD data types in mojom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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/tests/bindings/sample_service.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tests/bindings/sample_service_unittest.cc
diff --git a/mojo/public/tests/bindings/sample_service_unittest.cc b/mojo/public/tests/bindings/sample_service_unittest.cc
index b6a75e5d283aab1801f21108da7876891bbc3c98..62b144b4d24e729acb39a7b09f2bd4beab9d7957 100644
--- a/mojo/public/tests/bindings/sample_service_unittest.cc
+++ b/mojo/public/tests/bindings/sample_service_unittest.cc
@@ -321,6 +321,10 @@ TEST(BindingsSampleTest, DefaultValues) {
ASSERT_FALSE(foo.name().is_null());
EXPECT_EQ("Fooby", foo.name().To<std::string>());
EXPECT_TRUE(foo.a());
+ EXPECT_EQ(3u, foo.data().size());
+ EXPECT_EQ(1, foo.data()[0]);
+ EXPECT_EQ(2, foo.data()[1]);
+ EXPECT_EQ(3, foo.data()[2]);
}
} // namespace sample
« no previous file with comments | « mojo/public/tests/bindings/sample_service.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698