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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java

Issue 10979009: Move content test utils to content/public/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on new branch Created 8 years, 3 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: content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java b/content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java
deleted file mode 100644
index 4bfec428d79a807104910a3aa5c4c0777fe0c874..0000000000000000000000000000000000000000
--- a/content/public/android/javatests/src/org/chromium/content/browser/util/TestContentViewClient.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2012 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.content.browser.util;
-
-
-import org.chromium.content.browser.ContentViewClient;
-import org.chromium.content.browser.util.TestCallbackHelperContainer.OnEvaluateJavaScriptResultHelper;
-import org.chromium.content.browser.util.TestCallbackHelperContainer.OnPageFinishedHelper;
-import org.chromium.content.browser.util.TestCallbackHelperContainer.OnPageStartedHelper;
-import org.chromium.content.browser.util.TestCallbackHelperContainer.OnReceivedErrorHelper;
-
-/**
- * The default ContentViewClient used by ContentView tests.
- * <p>
- * Tests that need to supply their own ContentViewClient should do that
- * by extending this one.
- */
-public class TestContentViewClient extends ContentViewClient {
-
- private OnEvaluateJavaScriptResultHelper mOnEvaluateJavaScriptResultHelper;
-
- public TestContentViewClient() {
- mOnEvaluateJavaScriptResultHelper = new OnEvaluateJavaScriptResultHelper();
- }
-
- public OnEvaluateJavaScriptResultHelper getOnEvaluateJavaScriptResultHelper() {
- return mOnEvaluateJavaScriptResultHelper;
- }
-
- /**
- * ATTENTION!: When overriding the following methods, be sure to call
- * the corresponding methods in the super class. Otherwise
- * {@link CallbackHelper#waitForCallback()} methods will
- * stop working!
- */
- @Override
- public void onEvaluateJavaScriptResult(int id, String jsonResult) {
- super.onEvaluateJavaScriptResult(id, jsonResult);
- mOnEvaluateJavaScriptResultHelper.notifyCalled(id, jsonResult);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698