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

Unified Diff: blimp/client/app/android/javatests/src/org/chromium/blimp/core/settings/MockPreferences.java

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 months 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: blimp/client/app/android/javatests/src/org/chromium/blimp/core/settings/MockPreferences.java
diff --git a/blimp/client/app/android/javatests/src/org/chromium/blimp/core/settings/MockPreferences.java b/blimp/client/app/android/javatests/src/org/chromium/blimp/core/settings/MockPreferences.java
deleted file mode 100644
index cb5f384d007e7038b344f4d699a8227419e7af81..0000000000000000000000000000000000000000
--- a/blimp/client/app/android/javatests/src/org/chromium/blimp/core/settings/MockPreferences.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2016 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.
-
-package org.chromium.blimp.core.settings;
-
-import android.app.Activity;
-import android.app.FragmentManager;
-import android.os.Bundle;
-import android.preference.PreferenceFragment;
-import android.preference.PreferenceScreen;
-
-/**
- * Activity to hold {@link MockMainPreferences}.
- */
-public class MockPreferences extends Activity {
-
- public static final String FRAGMENT_TAG = "TestMainPref";
-
- /** Mock {@link MainPreferences} in Clank, this is a PreferenceFragment that holds a list of
- * sub preferences items, including AboutBlimpPreferences.
- */
- @SuppressWarnings("javadoc")
- public static class MockMainPreferences extends PreferenceFragment {
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- // Create a PreferenceScreen in runtime, since the mock class don't load any XML
- // resource.
- PreferenceScreen screen = getPreferenceManager().createPreferenceScreen(getActivity());
- setPreferenceScreen(screen);
- }
- }
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- // Attach the {@link MockMainPreferences} to this activity.
- FragmentManager manager = getFragmentManager();
- manager.beginTransaction().add(new MockMainPreferences(), FRAGMENT_TAG)
- .commitAllowingStateLoss();
- manager.executePendingTransactions();
- }
-
- public PreferenceFragment getMainFragment() {
- return (PreferenceFragment) getFragmentManager().findFragmentByTag(FRAGMENT_TAG);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698