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

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

Issue 1932083002: Mojo: Use new message APIs to reduce copying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 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/message.h ('k') | mojo/public/cpp/bindings/tests/validation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/tests/connector_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/connector_unittest.cc b/mojo/public/cpp/bindings/tests/connector_unittest.cc
index 4292bd9dbf6c42c35cf644204ac7f6b54db4b414..96fd23d2e28638ccfde736ea94eddc38ebcc88e3 100644
--- a/mojo/public/cpp/bindings/tests/connector_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/connector_unittest.cc
@@ -527,11 +527,11 @@ TEST_F(ConnectorTest, PauseWithQueuedMessages) {
const char kText[] = "hello world";
+ // Queue up two messages.
Message message;
AllocMessage(kText, &message);
-
- // Queue up two messages.
connector0.Accept(&message);
+ AllocMessage(kText, &message);
connector0.Accept(&message);
base::RunLoop run_loop;
@@ -560,11 +560,11 @@ TEST_F(ConnectorTest, ProcessWhenNested) {
const char kText[] = "hello world";
+ // Queue up two messages.
Message message;
AllocMessage(kText, &message);
-
- // Queue up two messages.
connector0.Accept(&message);
+ AllocMessage(kText, &message);
connector0.Accept(&message);
base::RunLoop run_loop;
« no previous file with comments | « mojo/public/cpp/bindings/message.h ('k') | mojo/public/cpp/bindings/tests/validation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698