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

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

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.h
diff --git a/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h b/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h
index 94330525483ccbfaf12d171434c5a70c8bfbe450..e945abcaca25f6b65db46dd190409e66a827b819 100644
--- a/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h
+++ b/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h
@@ -38,6 +38,10 @@ struct StructTraits<test::StructWithTraits, test::StructWithTraitsImpl> {
static base::StringPiece f_string(const test::StructWithTraitsImpl& value) {
return value.get_string();
}
+
+ static base::StringPiece f_string2(const test::StructWithTraitsImpl& value) {
+ return value.get_string();
+ }
};
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698