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

Side by Side Diff: mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/public/cpp/bindings/tests/struct_with_traits_impl.h" 5 #include "mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h"
6
7 #include "mojo/public/interfaces/bindings/tests/struct_with_traits.mojom.h" 6 #include "mojo/public/interfaces/bindings/tests/struct_with_traits.mojom.h"
8 7
9 namespace mojo { 8 namespace mojo {
10 namespace test {
11
12 StructWithTraitsImpl::StructWithTraitsImpl() {}
13
14 StructWithTraitsImpl::~StructWithTraitsImpl() {}
15
16 } // namespace test
17 9
18 // static 10 // static
19 bool StructTraits<test::StructWithTraits, test::StructWithTraitsImpl>::Read( 11 bool StructTraits<test::StructWithTraits, test::StructWithTraitsImpl>::Read(
20 test::StructWithTraits_Reader r, 12 test::StructWithTraits_Reader r,
21 test::StructWithTraitsImpl* out) { 13 test::StructWithTraitsImpl* out) {
22 out->set_bool(r.f_bool()); 14 out->set_bool(r.f_bool());
23 out->set_uint32(r.f_uint32()); 15 out->set_uint32(r.f_uint32());
24 out->set_uint64(r.f_uint64()); 16 out->set_uint64(r.f_uint64());
25 out->set_string(r.f_string().as_string()); 17 out->set_string(r.f_string().as_string());
26 return true; 18 return true;
27 } 19 }
28 20
29 } // namespace mojo 21 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698