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

Unified Diff: ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm

Issue 2632393002: Allow using a BrowserViewController without BookmarkModel for testing. (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/ui/browser_view_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm
diff --git a/ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm b/ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm
index c9b46485fbc75ffee0da5094e7354eb97b808086..8b20b011ad9880f74a09876be06ee23111ac99e7 100644
--- a/ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm
+++ b/ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm
@@ -7,8 +7,6 @@
#import <UIKit/UIKit.h>
#include "base/mac/scoped_nsobject.h"
-#include "components/bookmarks/test/bookmark_test_helpers.h"
-#include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
#include "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
#import "ios/chrome/browser/tabs/tab_model.h"
#import "ios/chrome/browser/ui/browser_view_controller.h"
@@ -22,14 +20,8 @@ class BrowserViewWranglerTest : public PlatformTest {
BrowserViewWranglerTest() {
TestChromeBrowserState::Builder test_cbs_builder;
chrome_browser_state_ = test_cbs_builder.Build();
- chrome_browser_state_->CreateBookmarkModel(false);
- bookmarks::BookmarkModel* bookmark_model =
- ios::BookmarkModelFactory::GetForBrowserState(
- chrome_browser_state_.get());
- bookmarks::test::WaitForBookmarkModelToLoad(bookmark_model);
}
- // SessionWindow, used to create the TabModel, needs to run on the web thread.
web::TestWebThreadBundle thread_bundle_;
std::unique_ptr<TestChromeBrowserState> chrome_browser_state_;
};
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698