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

Side by Side Diff: mojo/android/javatests/src/org/chromium/mojo/bindings/test/mojom/mojo/IntegrationTestInterface2TestHelper.java

Issue 522353003: mojo: Run validation tests on java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.mojo.bindings.test.mojom.mojo;
6
7 import org.chromium.mojo.bindings.MessageReceiver;
8 import org.chromium.mojo.bindings.test.mojom.mojo.IntegrationTestInterface2.Meth od0Response;
9 import org.chromium.mojo.bindings.test.mojom.mojo.IntegrationTestInterface2_Inte rnal.IntegrationTestInterface2Method0ResponseParamsForwardToCallback;
10
11 /**
12 * Helper class to access {@link IntegrationTestInterface2_Internal} package pro tected method for
13 * tests.
14 */
15 public class IntegrationTestInterface2TestHelper {
16
17 private static final class SinkMethod0Response implements Method0Response {
18 @Override
19 public void call(byte[] arg1) {
20 }
21 }
22
23 /**
24 * Create a new {@link MessageReceiver} use for the callback of
ppi 2014/09/02 13:57:39 s/Creates/Create/, s/use/to use/
qsr 2014/09/02 14:15:23 Done.
25 * |IntegrationTestInterface2#method0(Method0Response)|
26 */
27 public static MessageReceiver newIntegrationTestInterface2MethodCallback() {
28 return new IntegrationTestInterface2Method0ResponseParamsForwardToCallba ck(
29 new SinkMethod0Response());
30 }
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698