| Index: chrome/android/javatests/src/org/chromium/chrome/browser/location/LocationSettingsTestUtil.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/location/LocationSettingsTestUtil.java b/chrome/android/javatests/src/org/chromium/chrome/browser/location/LocationSettingsTestUtil.java
|
| deleted file mode 100644
|
| index a2b5ced25f0bccd196ce7d7ceae6da07654c7904..0000000000000000000000000000000000000000
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/location/LocationSettingsTestUtil.java
|
| +++ /dev/null
|
| @@ -1,31 +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.chrome.browser.location;
|
| -
|
| -import org.chromium.base.ThreadUtils;
|
| -import org.chromium.chrome.browser.preferences.LocationSettings;
|
| -
|
| -/**
|
| - * Methods for testing location-related features.
|
| - */
|
| -public class LocationSettingsTestUtil {
|
| -
|
| - /**
|
| - * Mocks the system location setting as either enabled or disabled. Can be called on any thread.
|
| - */
|
| - public static void setSystemLocationSettingEnabled(final boolean enabled) {
|
| - ThreadUtils.runOnUiThreadBlocking(new Runnable() {
|
| - @Override
|
| - public void run() {
|
| - LocationSettings.setInstanceForTesting(new LocationSettings(null) {
|
| - @Override
|
| - public boolean isSystemLocationSettingEnabled() {
|
| - return enabled;
|
| - }
|
| - });
|
| - }
|
| - });
|
| - }
|
| -}
|
|
|