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

Side by Side Diff: chrome/test/base/bookmark_load_observer.cc

Issue 10479018: Add base::RunLoop and update ui_test_utils to use it to reduce flakiness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_shared build Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/base/bookmark_load_observer.h" 5 #include "chrome/test/base/bookmark_load_observer.h"
6 6
7 #include "base/message_loop.h" 7 #include "chrome/test/base/ui_test_utils.h"
8 8
9 BookmarkLoadObserver::BookmarkLoadObserver() {} 9 BookmarkLoadObserver::BookmarkLoadObserver(MessageLoop::RunID run_id)
10 : message_loop_run_id_(run_id) {}
10 11
11 BookmarkLoadObserver::~BookmarkLoadObserver() {} 12 BookmarkLoadObserver::~BookmarkLoadObserver() {}
12 13
13 void BookmarkLoadObserver::Loaded(BookmarkModel* model, bool ids_reassigned) { 14 void BookmarkLoadObserver::Loaded(BookmarkModel* model, bool ids_reassigned) {
14 MessageLoop::current()->Quit(); 15 ui_test_utils::QuitMessageLoopWithID(message_loop_run_id_);
15 } 16 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698