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

Unified Diff: cc/ipc/traits_test_service.mojom

Issue 2030173002: Simplify StructTraits tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments 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 | « cc/ipc/struct_traits_unittest.cc ('k') | gpu/ipc/common/struct_traits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/traits_test_service.mojom
diff --git a/cc/ipc/traits_test_service.mojom b/cc/ipc/traits_test_service.mojom
index 71958b1c4dd1925a98065b2fd004f630199f29c0..d637a1fffb5df84681dbdd8d39e33a14a281939c 100644
--- a/cc/ipc/traits_test_service.mojom
+++ b/cc/ipc/traits_test_service.mojom
@@ -10,11 +10,22 @@ import "cc/ipc/returned_resource.mojom";
import "cc/ipc/surface_id.mojom";
import "cc/ipc/transferable_resource.mojom";
+// All functions on this interface echo their arguments to test StructTraits
+// serialization and deserialization.
interface TraitsTestService {
+ [Sync]
EchoBeginFrameArgs(BeginFrameArgs b) => (BeginFrameArgs pass);
+
+ [Sync]
EchoRenderPassId(RenderPassId r) => (RenderPassId pass);
- EchoReturnedResource(ReturnedResource r) => (ReturnedResource r);
+
+ [Sync]
+ EchoReturnedResource(ReturnedResource r) => (ReturnedResource pass);
+
+ [Sync]
EchoSurfaceId(SurfaceId s) => (SurfaceId pass);
+
+ [Sync]
EchoTransferableResource(TransferableResource t) =>
(TransferableResource pass);
};
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | gpu/ipc/common/struct_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698