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

Unified Diff: mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTestUtils.java

Issue 526303003: mojo: java bindings rename Message subclasses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 6 years, 3 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 | « no previous file | mojo/android/javatests/src/org/chromium/mojo/bindings/ConnectorTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTestUtils.java
diff --git a/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTestUtils.java b/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTestUtils.java
index 640276778564f0d1600e4abb79bd2a24fe44178f..880577aa7c0ab6238690e2a904d78ada2634a02a 100644
--- a/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTestUtils.java
+++ b/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTestUtils.java
@@ -82,7 +82,7 @@ public class BindingsTestUtils {
/**
* Creates a new valid {@link Message}. The message will have a valid header.
*/
- public static Message newRandomMessageWithHeader(int size) {
+ public static Message newRandomMessage(int size) {
assert size > 16;
ByteBuffer message = TestUtils.newRandomBuffer(size);
int[] headerAsInts = { 16, 2, 0, 0 };
@@ -90,6 +90,6 @@ public class BindingsTestUtils {
message.putInt(4 * i, headerAsInts[i]);
}
message.position(0);
- return new SimpleMessage(message, new ArrayList<Handle>());
+ return new Message(message, new ArrayList<Handle>());
}
}
« no previous file with comments | « no previous file | mojo/android/javatests/src/org/chromium/mojo/bindings/ConnectorTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698