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); |
- } |
-} |