| Index: chrome/android/javatests_shell/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModelTest.java
|
| diff --git a/chrome/android/javatests_shell/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModelTest.java b/chrome/android/javatests_shell/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModelTest.java
|
| index 82f91dce1fdbc2c1dc0fe7dec377f83bc3b15145..9a21a3868ef9cf9f3c8ef1632e19bb46a7414c1b 100644
|
| --- a/chrome/android/javatests_shell/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModelTest.java
|
| +++ b/chrome/android/javatests_shell/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModelTest.java
|
| @@ -16,8 +16,8 @@ import org.chromium.chrome.browser.profiles.Profile;
|
| import org.chromium.chrome.browser.tabmodel.OffTheRecordTabModel.OffTheRecordTabModelDelegate;
|
| import org.chromium.chrome.browser.tabmodel.TabModel;
|
| import org.chromium.chrome.test.util.browser.tabmodel.document.MockActivityDelegate;
|
| +import org.chromium.chrome.test.util.browser.tabmodel.document.MockDocumentTabCreatorManager;
|
| import org.chromium.chrome.test.util.browser.tabmodel.document.MockStorageDelegate;
|
| -import org.chromium.chrome.test.util.browser.tabmodel.document.MockTabDelegate;
|
| import org.chromium.chrome.test.util.browser.tabmodel.document.TestInitializationObserver;
|
| import org.chromium.content.browser.test.NativeLibraryTestBase;
|
|
|
| @@ -31,7 +31,7 @@ import org.chromium.content.browser.test.NativeLibraryTestBase;
|
| public class OffTheRecordDocumentTabModelTest extends NativeLibraryTestBase {
|
| private MockActivityDelegate mActivityDelegate;
|
| private MockStorageDelegate mStorageDelegate;
|
| - private MockTabDelegate mTabDelegate;
|
| + private MockDocumentTabCreatorManager mTabCreatorManager;
|
|
|
| private OffTheRecordDocumentTabModel mTabModel;
|
| private Profile mProfile;
|
| @@ -48,7 +48,7 @@ public class OffTheRecordDocumentTabModelTest extends NativeLibraryTestBase {
|
| mContext = getInstrumentation().getTargetContext();
|
| mStorageDelegate = new MockStorageDelegate(mContext.getCacheDir());
|
| mActivityDelegate = new MockActivityDelegate();
|
| - mTabDelegate = new MockTabDelegate();
|
| + mTabCreatorManager = new MockDocumentTabCreatorManager();
|
| }
|
|
|
| private void createTabModel() {
|
| @@ -57,8 +57,8 @@ public class OffTheRecordDocumentTabModelTest extends NativeLibraryTestBase {
|
|
|
| @Override
|
| public TabModel createTabModel() {
|
| - mModel = new DocumentTabModelImpl(mActivityDelegate, mStorageDelegate, mTabDelegate,
|
| - true, Tab.INVALID_TAB_ID, mContext);
|
| + mModel = new DocumentTabModelImpl(mActivityDelegate, mStorageDelegate,
|
| + mTabCreatorManager, true, Tab.INVALID_TAB_ID, mContext);
|
| return mModel;
|
| }
|
|
|
|
|