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

Unified Diff: ios/chrome/browser/tabs/tab_model_order_controller_unittest.mm

Issue 2667213002: Get ModelTypeStoreFactory for reading list from ProfileSyncService (Closed)
Patch Set: 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
« no previous file with comments | « ios/chrome/browser/sync/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/tabs/tab_model_order_controller_unittest.mm
diff --git a/ios/chrome/browser/tabs/tab_model_order_controller_unittest.mm b/ios/chrome/browser/tabs/tab_model_order_controller_unittest.mm
index 450d8a37199b8918c4706324ce27372463b0001d..bde32a362b2292f54681aad014be54ae9918506e 100644
--- a/ios/chrome/browser/tabs/tab_model_order_controller_unittest.mm
+++ b/ios/chrome/browser/tabs/tab_model_order_controller_unittest.mm
@@ -5,11 +5,13 @@
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/memory/ptr_util.h"
#include "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
+#include "ios/chrome/browser/browser_state/test_chrome_browser_state_manager.h"
#import "ios/chrome/browser/sessions/session_window.h"
#import "ios/chrome/browser/sessions/test_session_service.h"
#import "ios/chrome/browser/tabs/tab.h"
#import "ios/chrome/browser/tabs/tab_model.h"
#import "ios/chrome/browser/tabs/tab_model_order_controller.h"
+#include "ios/chrome/test/ios_chrome_scoped_testing_chrome_browser_state_manager.h"
#include "ios/web/public/referrer.h"
#include "ios/web/public/test/test_web_thread_bundle.h"
#include "ios/web/public/web_thread.h"
@@ -21,7 +23,10 @@ namespace {
class TabModelOrderControllerTest : public PlatformTest {
protected:
TabModelOrderControllerTest()
- : thread_bundle_(web::TestWebThreadBundle::IO_MAINLOOP) {}
+ : thread_bundle_(web::TestWebThreadBundle::IO_MAINLOOP),
+ scoped_browser_state_manager_(
+ base::MakeUnique<TestChromeBrowserStateManager>(base::FilePath())) {
+ }
void SetUp() override {
DCHECK_CURRENTLY_ON(web::WebThread::UI);
@@ -78,6 +83,7 @@ class TabModelOrderControllerTest : public PlatformTest {
GURL url_;
web::Referrer referrer_;
web::TestWebThreadBundle thread_bundle_;
+ IOSChromeScopedTestingChromeBrowserStateManager scoped_browser_state_manager_;
base::scoped_nsobject<SessionWindowIOS> sessionWindow_;
std::unique_ptr<TestChromeBrowserState> chrome_browser_state_;
base::scoped_nsobject<Tab> dummy_tab_;
« no previous file with comments | « ios/chrome/browser/sync/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698