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

Unified Diff: mojo/public/interfaces/bindings/tests/struct_with_traits.mojom

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
« no previous file with comments | « mojo/public/cpp/system/handle.h ('k') | mojo/public/interfaces/bindings/tests/test_unions.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
diff --git a/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom b/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
index 8763540361008ea9a43397fa99d4f099003ae681..11097c04934f150e23e5007338f677ea4edeb0ba 100644
--- a/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
+++ b/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
@@ -20,6 +20,7 @@ struct StructWithTraits {
map<string, NestedStructWithTraits> f_struct_map;
};
+// Test that this container can be cloned.
struct StructWithTraitsContainer {
StructWithTraits f_struct;
};
@@ -28,6 +29,12 @@ struct PassByValueStructWithTraits {
handle f_handle;
};
+// The custom type for PassByValueStructWithTraits is not clonable. Test that
+// this container can compile as long as Clone() is not used.
+struct PassByValueStructWithTraitsContainer {
+ PassByValueStructWithTraits f_struct;
+};
+
interface TraitsTestService {
EchoStructWithTraits(StructWithTraits s) => (StructWithTraits passed);
« no previous file with comments | « mojo/public/cpp/system/handle.h ('k') | mojo/public/interfaces/bindings/tests/test_unions.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698