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

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

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.cc
diff --git a/mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc b/mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc
index ee08ecf6ff7d1994e7e3718564a9335704639966..7e59d3bc602b4ba30d04b1b86c66a6fb78d8d237 100644
--- a/mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc
+++ b/mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc
@@ -4,8 +4,6 @@
#include "mojo/public/cpp/bindings/tests/struct_with_traits_impl.h"
-#include "mojo/public/interfaces/bindings/tests/struct_with_traits.mojom.h"
-
namespace mojo {
namespace test {
@@ -14,16 +12,4 @@ StructWithTraitsImpl::StructWithTraitsImpl() {}
StructWithTraitsImpl::~StructWithTraitsImpl() {}
} // namespace test
-
-// static
-bool StructTraits<test::StructWithTraits, test::StructWithTraitsImpl>::Read(
- test::StructWithTraits_Reader r,
- test::StructWithTraitsImpl* out) {
- out->set_bool(r.f_bool());
- out->set_uint32(r.f_uint32());
- out->set_uint64(r.f_uint64());
- out->set_string(r.f_string().as_string());
- return true;
-}
-
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698