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

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

Issue 1867483002: Mojo: Align string sizes when serializing a native type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 f58ce84652ba81bfd161073a0a7ee6ea96343c6a..8d4f97d43fffa05a1ad881936725a9d2ba592207 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
@@ -15,7 +15,7 @@ bool StructTraits<test::StructWithTraits, test::StructWithTraitsImpl>::Read(
out->set_uint32(r.f_uint32());
out->set_uint64(r.f_uint64());
out->set_string(r.f_string().as_string());
- return true;
+ return r.f_string() == r.f_string2();
}
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698