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

Side by Side Diff: mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc

Issue 2031823002: Mojo C++ bindings: more consistent Clone() and Equals(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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.h"
6 6
7 namespace mojo { 7 namespace mojo {
8 namespace test { 8 namespace test {
9 9
10 NestedStructWithTraitsImpl::NestedStructWithTraitsImpl() {} 10 NestedStructWithTraitsImpl::NestedStructWithTraitsImpl() {}
11 NestedStructWithTraitsImpl::NestedStructWithTraitsImpl(int32_t in_value) 11 NestedStructWithTraitsImpl::NestedStructWithTraitsImpl(int32_t in_value)
12 : value(in_value) {} 12 : value(in_value) {}
13 13
14 StructWithTraitsImpl::StructWithTraitsImpl() {} 14 StructWithTraitsImpl::StructWithTraitsImpl() {}
15 15
16 StructWithTraitsImpl::~StructWithTraitsImpl() {} 16 StructWithTraitsImpl::~StructWithTraitsImpl() {}
17 17
18 StructWithTraitsImpl::StructWithTraitsImpl(const StructWithTraitsImpl& other) =
19 default;
20
18 PassByValueStructWithTraitsImpl::PassByValueStructWithTraitsImpl() {} 21 PassByValueStructWithTraitsImpl::PassByValueStructWithTraitsImpl() {}
19 22
20 PassByValueStructWithTraitsImpl::PassByValueStructWithTraitsImpl( 23 PassByValueStructWithTraitsImpl::PassByValueStructWithTraitsImpl(
21 PassByValueStructWithTraitsImpl&& other) = default; 24 PassByValueStructWithTraitsImpl&& other) = default;
22 25
23 PassByValueStructWithTraitsImpl::~PassByValueStructWithTraitsImpl() {} 26 PassByValueStructWithTraitsImpl::~PassByValueStructWithTraitsImpl() {}
24 27
25 } // namespace test 28 } // namespace test
26 } // namespace mojo 29 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/struct_with_traits_impl.h ('k') | mojo/public/cpp/bindings/wtf_array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698