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.
5 package org.chromium.mojo.bindings.test.mojom.mojo;
7 import org.chromium.mojo.bindings.MessageReceiver;
8 import org.chromium.mojo.bindings.test.mojom.mojo.IntegrationTestInterface2.Method0Response;
9 import org.chromium.mojo.bindings.test.mojom.mojo.IntegrationTestInterface2_Internal.IntegrationTestInterface2Method0ResponseParamsForwardToCallback;
12 * Helper class to access {@link IntegrationTestInterface2_Internal} package protected method for
15 public class IntegrationTestInterface2TestHelper {
17 private static final class SinkMethod0Response implements Method0Response {
19 public void call(byte[] arg1) {
24 * Creates a new {@link MessageReceiver} to use for the callback of
25 * |IntegrationTestInterface2#method0(Method0Response)|.
27 public static MessageReceiver newIntegrationTestInterface2MethodCallback() {
28 return new IntegrationTestInterface2Method0ResponseParamsForwardToCallback(
29 new SinkMethod0Response());