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

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

Issue 2014403002: Mojo C++ bindings: custom type mapping of map (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc
diff --git a/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc b/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc
index c166e33b0dd55015016d58c4d0bf1967df896524..cc4bf01fb7cfd9e72abb8e881bfb7f21dd665d50 100644
--- a/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc
+++ b/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc
@@ -75,6 +75,9 @@ bool StructTraits<test::StructWithTraits, test::StructWithTraitsImpl>::Read(
if (!data.ReadFStructArray(&out->get_mutable_struct_array()))
return false;
+ if (!data.ReadFStructMap(&out->get_mutable_struct_map()))
+ return false;
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698