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

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: phajdan feedback Created 8 years, 5 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
« no previous file with comments | « chrome/test/base/bookmark_load_observer.h ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(const base::Closure& quit_task)
10 : quit_task_(quit_task) {}
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 quit_task_.Run();
15 } 16 }
OLDNEW
« no previous file with comments | « chrome/test/base/bookmark_load_observer.h ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698