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

Unified Diff: chrome/browser/views/bookmark_bar_view_test.cc

Issue 353003: Fix windows interactive ui test failure introduced in r30687.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_bar_view_test.cc
===================================================================
--- chrome/browser/views/bookmark_bar_view_test.cc (revision 30688)
+++ chrome/browser/views/bookmark_bar_view_test.cc (working copy)
@@ -69,7 +69,11 @@
class BookmarkBarViewEventTestBase : public ViewEventTestBase {
public:
BookmarkBarViewEventTestBase()
- : ViewEventTestBase(), model_(NULL), bb_view_(NULL) {
+ : ViewEventTestBase(),
+ model_(NULL),
+ bb_view_(NULL),
+ ui_thread_(ChromeThread::UI, MessageLoop::current()),
+ file_thread_(ChromeThread::FILE, MessageLoop::current()) {
}
virtual void SetUp() {
@@ -79,6 +83,7 @@
profile_.reset(new TestingProfile());
profile_->set_has_history_service(true);
profile_->CreateBookmarkModel(true);
+ profile_->BlockUntilBookmarkModelLoaded();
profile_->GetPrefs()->SetBoolean(prefs::kShowBookmarkBar, true);
model_ = profile_->GetBookmarkModel();
@@ -171,6 +176,8 @@
gfx::Size bb_view_pref_;
scoped_ptr<TestingProfile> profile_;
+ ChromeThread ui_thread_;
+ ChromeThread file_thread_;
};
// Clicks on first menu, makes sure button is depressed. Moves mouse to first
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698