OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #include "components/gcm_driver/instance_id/instance_id_test_utils_android.h" |
| 6 |
| 7 #include "base/android/jni_android.h" |
| 8 #include "jni/FakeInstanceIDWithSubtype_jni.h" |
| 9 |
| 10 using base::android::AttachCurrentThread; |
| 11 |
| 12 namespace instance_id { |
| 13 |
| 14 // static |
| 15 bool InstanceIDTestUtilsAndroid::RegisterJni(JNIEnv* env) { |
| 16 return RegisterNativesImpl(env); |
| 17 } |
| 18 |
| 19 // static |
| 20 void InstanceIDTestUtilsAndroid::ClearDataAndSetUseFakeForTesting( |
| 21 bool use_fake) { |
| 22 JNIEnv* env = AttachCurrentThread(); |
| 23 Java_FakeInstanceIDWithSubtype_clearDataAndSetEnabled(env, use_fake); |
| 24 } |
| 25 |
| 26 } // namespace instance_id |
OLD | NEW |