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

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

Issue 1821073002: Mojo bindings: Fix typemap includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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.h
diff --git a/mojo/public/cpp/bindings/tests/struct_with_traits_impl.h b/mojo/public/cpp/bindings/tests/struct_with_traits_impl.h
index d56dae593ee7142ef60053fd70120e4d4cd1a00f..b10c8b3f36fe2d6bb6a2cbb94d8143ecdb303002 100644
--- a/mojo/public/cpp/bindings/tests/struct_with_traits_impl.h
+++ b/mojo/public/cpp/bindings/tests/struct_with_traits_impl.h
@@ -47,32 +47,6 @@ class StructWithTraitsImpl {
};
} // namespace test
-
-template <>
-struct StructTraits<test::StructWithTraits, test::StructWithTraitsImpl> {
- // Deserialization to test::StructTraitsImpl.
- static bool Read(test::StructWithTraits_Reader r,
- test::StructWithTraitsImpl* out);
-
- // Fields in test::StructWithTraits.
- // See src/mojo/public/interfaces/bindings/tests/test_native_types.mojom.
- static bool f_bool(const test::StructWithTraitsImpl& value) {
- return value.get_bool();
- }
-
- static uint32_t f_uint32(const test::StructWithTraitsImpl& value) {
- return value.get_uint32();
- }
-
- static uint64_t f_uint64(const test::StructWithTraitsImpl& value) {
- return value.get_uint64();
- }
-
- static base::StringPiece f_string(const test::StructWithTraitsImpl& value) {
- return value.get_string();
- }
-};
-
} // namespace mojo
#endif // MOJO_PUBLIC_CPP_BINDINGS_TESTS_STRUCT_WITH_TRAITS_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698