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

Unified Diff: components/precache/android/javatests/src/org/chromium/components/precache/MockDeviceState.java

Issue 1032273004: Revert of precache: Move the java files into //components/precache/android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « components/precache/android/javatests/src/org/chromium/components/precache/DeviceStateTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/android/javatests/src/org/chromium/components/precache/MockDeviceState.java
diff --git a/components/precache/android/javatests/src/org/chromium/components/precache/MockDeviceState.java b/components/precache/android/javatests/src/org/chromium/components/precache/MockDeviceState.java
deleted file mode 100644
index 61f601fc6f38de9a7dc7875a7f3fc3db6b33205e..0000000000000000000000000000000000000000
--- a/components/precache/android/javatests/src/org/chromium/components/precache/MockDeviceState.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// 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.
-
-package org.chromium.components.precache;
-
-import android.content.Context;
-
-/**
- * Mock of the DeviceState class.
- */
-public class MockDeviceState extends DeviceState {
- private final int mStickyBatteryStatus;
- private final boolean mPowerIsConnected;
- private final boolean mInteractive;
- private final boolean mWifiIsAvailable;
-
- public MockDeviceState(int stickyBatteryStatus, boolean powerIsConnected,
- boolean interactive, boolean wifiIsAvailable) {
- mStickyBatteryStatus = stickyBatteryStatus;
- mPowerIsConnected = powerIsConnected;
- mInteractive = interactive;
- mWifiIsAvailable = wifiIsAvailable;
- }
-
- @Override
- int getStickyBatteryStatus(Context context) {
- return mStickyBatteryStatus;
- }
-
- @Override
- public boolean isPowerConnected(Context context) {
- return mPowerIsConnected;
- }
-
- @Override
- public boolean isInteractive(Context context) {
- return mInteractive;
- }
-
- @Override
- public boolean isWifiAvailable(Context context) {
- return mWifiIsAvailable;
- }
-}
« no previous file with comments | « components/precache/android/javatests/src/org/chromium/components/precache/DeviceStateTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698