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

Side by Side Diff: chrome/test/base/ui_test_utils.h

Issue 573553004: Eliminate NOTIFICATION_HISTORY_LOADED notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_ 5 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_
6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_ 6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 const base::Closure& quit_task, 299 const base::Closure& quit_task,
300 history::QueryResults* results); 300 history::QueryResults* results);
301 301
302 std::vector<GURL> urls_; 302 std::vector<GURL> urls_;
303 303
304 base::CancelableTaskTracker tracker_; 304 base::CancelableTaskTracker tracker_;
305 305
306 DISALLOW_COPY_AND_ASSIGN(HistoryEnumerator); 306 DISALLOW_COPY_AND_ASSIGN(HistoryEnumerator);
307 }; 307 };
308 308
309 // Wait for HistoryService to load.
sdefresne 2014/09/23 08:45:10 You can move this class in ui_test_utils.cc since
nshaik 2014/10/29 08:43:39 Done.
310 class WaitHistoryLoadedObserver : public history::HistoryServiceObserver {
311 public:
312 explicit WaitHistoryLoadedObserver(content::MessageLoopRunner* runner);
313 // Is called when |service| is loaded.
sdefresne 2014/10/20 13:15:43 // history::HistoryServiceObserver:
314 virtual void HistoryServiceLoaded(HistoryService* service) OVERRIDE;
sdefresne 2014/10/20 13:15:43 OVERRIDE -> override
315 virtual ~WaitHistoryLoadedObserver();
sdefresne 2014/10/20 13:15:43 Move the destructor with the constructor.
316
317 private:
318 // weak
319 content::MessageLoopRunner* runner_;
320 };
321
309 } // namespace ui_test_utils 322 } // namespace ui_test_utils
310 323
311 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ 324 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698