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

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

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, 7 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 abcb23e8210ce7c1ed3bdf0faa498978c1ec46ae..a9ad28de7304480c23b38601ce690e3f67a9cdbd 100644
--- a/mojo/public/cpp/bindings/tests/struct_with_traits_impl.h
+++ b/mojo/public/cpp/bindings/tests/struct_with_traits_impl.h
@@ -36,6 +36,8 @@ class StructWithTraitsImpl {
StructWithTraitsImpl();
~StructWithTraitsImpl();
+ StructWithTraitsImpl(const StructWithTraitsImpl& other);
+
void set_bool(bool value) { bool_ = value; }
bool get_bool() const { return bool_; }
@@ -95,6 +97,7 @@ class PassByValueStructWithTraitsImpl {
private:
ScopedHandle handle_;
+ DISALLOW_COPY_AND_ASSIGN(PassByValueStructWithTraitsImpl);
};
} // namespace test
« no previous file with comments | « mojo/public/cpp/bindings/tests/struct_traits_unittest.cc ('k') | mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698