| Index: chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java
|
| diff --git a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d9bdaf31dc20973f4f54cb63c1b26034cd5e840b
|
| --- /dev/null
|
| +++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2014 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.test.util.browser.tabmodel.document;
|
| +
|
| +import android.app.Activity;
|
| +
|
| +import org.chromium.chrome.browser.Tab;
|
| +import org.chromium.chrome.browser.tabmodel.document.ActivityDelegate;
|
| +import org.chromium.chrome.browser.tabmodel.document.DocumentTabModel.Entry;
|
| +import org.chromium.chrome.browser.tabmodel.document.TabDelegate;
|
| +
|
| +/**
|
| + * Mocks out calls to get Tabs for the DocumentTabModel.
|
| + */
|
| +public class MockTabDelegate implements TabDelegate {
|
| + @Override
|
| + public Tab getActivityTab(boolean incognito, ActivityDelegate delgate, Activity activity) {
|
| + return null;
|
| + }
|
| +
|
| + @Override
|
| + public Tab createFrozenTab(Entry entry) {
|
| + return null;
|
| + }
|
| +
|
| + @Override
|
| + public void createTabWithNativeContents(boolean isIncognito, long webContentsPtr,
|
| + int parentTabId) {
|
| + }
|
| +
|
| + @Override
|
| + public void createTabForDevTools(String url) {
|
| + }
|
| +}
|
|
|