• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.chromium.base;
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  */
setInstanceForTesting(T instance)13 public interface JniStaticTestMocker<T> { void setInstanceForTesting(T instance); }
14