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

Unified Diff: mojo/public/cpp/bindings/tests/pickled_struct_chromium.cc

Issue 1655333002: Add message sizing to basic IPC traits and struct macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@with-pickles
Patch Set: include ArrayHeader in size (oops!) and ensure the buffer doesn't relocate Created 4 years, 10 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/bindings/tests/pickled_struct_chromium.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/tests/pickled_struct_chromium.cc
diff --git a/mojo/public/cpp/bindings/tests/pickled_struct_chromium.cc b/mojo/public/cpp/bindings/tests/pickled_struct_chromium.cc
index d45a44a51f837945155555688c60d1929983a884..0dee03f753c47175312a1ecbca223ee17b0e003d 100644
--- a/mojo/public/cpp/bindings/tests/pickled_struct_chromium.cc
+++ b/mojo/public/cpp/bindings/tests/pickled_struct_chromium.cc
@@ -22,6 +22,13 @@ PickledStructChromium::~PickledStructChromium() {}
namespace IPC {
+void ParamTraits<mojo::test::PickledStructChromium>::GetSize(
+ base::PickleSizer* sizer,
+ const param_type& p) {
+ sizer->AddInt();
+ sizer->AddInt();
+}
+
void ParamTraits<mojo::test::PickledStructChromium>::Write(
base::Pickle* m,
const param_type& p) {
« no previous file with comments | « mojo/public/cpp/bindings/tests/pickled_struct_chromium.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698