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

Side by Side Diff: components/variations/android/variations_seed_bridge_test.cc

Issue 1462953004: Unit tests for importing prefs from the Java side implemented (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit test check if prefs are actually empty after calling ClearJavaFirstRunPrefs() function Created 5 years, 1 month 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 2015 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/variations/android/variations_seed_bridge_test.h"
6
7 #include <jni.h>
8
9 #include "base/android/jni_android.h"
10 #include "jni/VariationsSeedBridgeTest_jni.h"
11
12 using base::android::AttachCurrentThread;
13 using base::android::GetApplicationContext;
14
15 namespace variations {
16 namespace android {
17
18 bool RegisterVariationsSeedBridgeTest(JNIEnv* env) {
19 return RegisterNativesImpl(env);
20 }
21
22 void SetTestData() {
23 JNIEnv* env = AttachCurrentThread();
24 Java_VariationsSeedBridgeTest_setTestData(env, GetApplicationContext());
25 }
26
27 } // namespace android
28 } // namespace variations
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698