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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/variations/android/variations_seed_bridge_test.cc
diff --git a/components/variations/android/variations_seed_bridge_test.cc b/components/variations/android/variations_seed_bridge_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..86a6aa763f440001b705fbecb547b4b54cb6be52
--- /dev/null
+++ b/components/variations/android/variations_seed_bridge_test.cc
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/variations/android/variations_seed_bridge_test.h"
+
+#include <jni.h>
+
+#include "base/android/jni_android.h"
+#include "jni/VariationsSeedBridgeTest_jni.h"
+
+using base::android::AttachCurrentThread;
+using base::android::GetApplicationContext;
+
+namespace variations {
+namespace android {
+
+bool RegisterVariationsSeedBridgeTest(JNIEnv* env) {
+ return RegisterNativesImpl(env);
+}
+
+void SetTestData() {
+ JNIEnv* env = AttachCurrentThread();
+ Java_VariationsSeedBridgeTest_setTestData(env, GetApplicationContext());
+}
+
+} // namespace android
+} // namespace variations

Powered by Google App Engine
This is Rietveld 408576698