1 // Copyright 2018 The Chromium Authors 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.jni_zero; 6 7 /** 8 * Implemented by the TEST_HOOKS field in JNI wrapper classes that are generated 9 * by the JNI annotation processor. Used in tests for setting the mock 10 * implementation of a {@link org.chromium.base.annotations.NativeMethods} interface. 11 * @param <T> The interface annotated with {@link org.chromium.base.annotations.NativeMethods} 12 */ 13 public interface JniStaticTestMocker<T> { setInstanceForTesting(T instance)14 void setInstanceForTesting(T instance); 15 } 16