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

Unified Diff: mojo/public/cpp/bindings/tests/struct_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
« no previous file with comments | « mojo/public/cpp/bindings/tests/map_unittest.cc ('k') | mojo/public/cpp/bindings/tests/union_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/tests/struct_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/struct_unittest.cc b/mojo/public/cpp/bindings/tests/struct_unittest.cc
index 24173e58e54a5f1b0cfd9dc0bb1d2e009aa21c96..4df2b17bb1c54272cc5989be64488e8cff3ca9ae 100644
--- a/mojo/public/cpp/bindings/tests/struct_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/struct_unittest.cc
@@ -67,7 +67,7 @@ U SerializeAndDeserialize(T input) {
output_data->DecodePointersAndHandles(&handles);
U output;
- Deserialize_(output_data, &output);
+ Deserialize_(output_data, &output, nullptr);
return output.Pass();
}
@@ -139,7 +139,7 @@ TEST_F(StructTest, Serialization_Basic) {
Serialize_(rect.Pass(), &buf, &data);
RectPtr rect2;
- Deserialize_(data, &rect2);
+ Deserialize_(data, &rect2, nullptr);
CheckRect(*rect2);
}
@@ -172,7 +172,7 @@ TEST_F(StructTest, Serialization_StructPointers) {
Serialize_(pair.Pass(), &buf, &data);
RectPairPtr pair2;
- Deserialize_(data, &pair2);
+ Deserialize_(data, &pair2, nullptr);
CheckRect(*pair2->first);
CheckRect(*pair2->second);
@@ -203,7 +203,7 @@ TEST_F(StructTest, Serialization_ArrayPointers) {
Serialize_(region.Pass(), &buf, &data);
NamedRegionPtr region2;
- Deserialize_(data, &region2);
+ Deserialize_(data, &region2, nullptr);
EXPECT_EQ(String("region"), region2->name);
@@ -229,7 +229,7 @@ TEST_F(StructTest, Serialization_NullArrayPointers) {
Serialize_(region.Pass(), &buf, &data);
NamedRegionPtr region2;
- Deserialize_(data, &region2);
+ Deserialize_(data, &region2, nullptr);
EXPECT_TRUE(region2->name.is_null());
EXPECT_TRUE(region2->rects.is_null());
« no previous file with comments | « mojo/public/cpp/bindings/tests/map_unittest.cc ('k') | mojo/public/cpp/bindings/tests/union_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698