Index: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsTestUtils.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsTestUtils.java b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsTestUtils.java |
deleted file mode 100644 |
index bfae2e6dd772df05b7375e06c87ed8effe5591c7..0000000000000000000000000000000000000000 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsTestUtils.java |
+++ /dev/null |
@@ -1,47 +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.customtabs; |
- |
-import android.content.ComponentName; |
-import android.content.Context; |
-import android.content.Intent; |
-import android.net.Uri; |
-import android.os.Bundle; |
-import android.os.IBinder; |
-import android.support.customtabs.CustomTabsIntent; |
-import android.support.customtabs.ICustomTabsCallback; |
- |
-import org.chromium.chrome.browser.document.ChromeLauncherActivity; |
-import org.chromium.chrome.browser.util.IntentUtils; |
- |
-/** |
- * Utility class that contains convenience calls related with custom tabs testing. |
- */ |
-public class CustomTabsTestUtils { |
- public static ICustomTabsCallback newDummyCallback() { |
- return new ICustomTabsCallback.Stub() { |
- @Override |
- public void onNavigationEvent(int navigationEvent, Bundle extras) {} |
- |
- @Override |
- public IBinder asBinder() { |
- return this; |
- } |
- }; |
- } |
- |
- /** |
- * Creates the simplest intent that is sufficient to let {@link ChromeLauncherActivity} launch |
- * the {@link CustomTabActivity}. |
- */ |
- public static Intent createMinimalCustomTabIntent( |
- Context context, String url, IBinder session) { |
- Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); |
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); |
- intent.setComponent(new ComponentName(context, ChromeLauncherActivity.class)); |
- IntentUtils.safePutBinderExtra(intent, CustomTabsIntent.EXTRA_SESSION, session); |
- return intent; |
- } |
-} |