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

Unified Diff: blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContext.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/MockBlimpClientContext.java
diff --git a/blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContext.java b/blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContext.java
deleted file mode 100644
index 86e46c89a6ae737bddb83a5dd740ebc026af57ce..0000000000000000000000000000000000000000
--- a/blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContext.java
+++ /dev/null
@@ -1,81 +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;
-
-import android.preference.PreferenceFragment;
-
-import org.chromium.blimp.core.settings.AboutBlimpPreferences;
-import org.chromium.blimp.core.settings.BlimpPreferencesDelegate;
-import org.chromium.blimp_public.BlimpClientContext;
-import org.chromium.blimp_public.BlimpClientContextDelegate;
-import org.chromium.blimp_public.contents.BlimpContents;
-import org.chromium.ui.base.WindowAndroid;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Mock {@link BlimpClientContext}.
- * This test support class only tests Java layer and is not backed by any native code.
- */
-public class MockBlimpClientContext implements BlimpClientContext, BlimpPreferencesDelegate {
- public MockBlimpClientContext() {}
-
- private MockBlimpClientContextDelegate mDelegate = new MockBlimpClientContextDelegate();
-
- private boolean mEnabled = false;
- private int mConnectCalled = 0;
-
- public void reset() {
- mConnectCalled = 0;
- }
-
- public void setBlimpEnabled(boolean enabled) {
- mEnabled = enabled;
- }
-
- public int connectCalledCount() {
- return mConnectCalled;
- }
-
- @Override
- public BlimpContents createBlimpContents(WindowAndroid window) {
- return null;
- }
-
- @Override
- public boolean isBlimpSupported() {
- return true;
- }
-
- @Override
- public void attachBlimpPreferences(PreferenceFragment fragment) {}
-
- @Override
- public void setDelegate(BlimpClientContextDelegate delegate) {}
-
- @Override
- public boolean isBlimpEnabled() {
- return mEnabled;
- }
-
- @Override
- public void connect() {
- mConnectCalled++;
- }
-
- @Override
- public BlimpClientContextDelegate getDelegate() {
- return mDelegate;
- }
-
- @Override
- public void initSettingsPage(AboutBlimpPreferences preferences) {}
-
- @Override
- public Map<String, String> getFeedbackMap() {
- return new HashMap<>();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698