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

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

Issue 1475813002: Mojo C++ bindings: support passing associated interface pointers/requests in method parameter lists… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@25_use_multiplex_router
Patch Set: Created 5 years, 1 month 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
Index: mojo/public/cpp/bindings/tests/array_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/array_unittest.cc b/mojo/public/cpp/bindings/tests/array_unittest.cc
index 8befe81d0fea6c7fa3f856c68b3e22b7dc895d35..b677cc1ff5b5d6477bd22322dd13d7415f9d235e 100644
--- a/mojo/public/cpp/bindings/tests/array_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/array_unittest.cc
@@ -156,7 +156,7 @@ TEST_F(ArrayTest, Serialization_ArrayOfPOD) {
SerializeArray_(array.Pass(), &buf, &data, &validate_params);
Array<int32_t> array2;
- Deserialize_(data, &array2);
+ Deserialize_(data, &array2, nullptr);
EXPECT_EQ(4U, array2.size());
for (size_t i = 0; i < array2.size(); ++i)
@@ -174,7 +174,7 @@ TEST_F(ArrayTest, Serialization_EmptyArrayOfPOD) {
SerializeArray_(array.Pass(), &buf, &data, &validate_params);
Array<int32_t> array2;
- Deserialize_(data, &array2);
+ Deserialize_(data, &array2, nullptr);
EXPECT_EQ(0U, array2.size());
}
@@ -197,7 +197,7 @@ TEST_F(ArrayTest, Serialization_ArrayOfArrayOfPOD) {
SerializeArray_(array.Pass(), &buf, &data, &validate_params);
Array<Array<int32_t>> array2;
- Deserialize_(data, &array2);
+ Deserialize_(data, &array2, nullptr);
EXPECT_EQ(2U, array2.size());
for (size_t j = 0; j < array2.size(); ++j) {
@@ -222,7 +222,7 @@ TEST_F(ArrayTest, Serialization_ArrayOfBool) {
SerializeArray_(array.Pass(), &buf, &data, &validate_params);
Array<bool> array2;
- Deserialize_(data, &array2);
+ Deserialize_(data, &array2, nullptr);
EXPECT_EQ(10U, array2.size());
for (size_t i = 0; i < array2.size(); ++i)
@@ -250,7 +250,7 @@ TEST_F(ArrayTest, Serialization_ArrayOfString) {
SerializeArray_(array.Pass(), &buf, &data, &validate_params);
Array<String> array2;
- Deserialize_(data, &array2);
+ Deserialize_(data, &array2, nullptr);
EXPECT_EQ(10U, array2.size());
for (size_t i = 0; i < array2.size(); ++i) {
« no previous file with comments | « mojo/public/cpp/bindings/lib/string_serialization.cc ('k') | mojo/public/cpp/bindings/tests/associated_interface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698