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

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

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
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_TEST_WEB_DIALOG_OBSERVER_H_ 5 #ifndef CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_
6 #define CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_ 6 #define CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/test/base/ui_test_utils.h"
11 #include "content/public/browser/notification_observer.h" 12 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
13 #include "ui/web_dialogs/web_dialog_observer.h" 14 #include "ui/web_dialogs/web_dialog_observer.h"
14 15
15 16
16 namespace content { 17 namespace content {
17 class JsInjectionReadyObserver; 18 class JsInjectionReadyObserver;
18 class RenderViewHost; 19 class RenderViewHost;
19 class WebUI; 20 class WebUI;
20 } 21 }
(...skipping 27 matching lines...) Expand all
48 const content::NotificationDetails& details) OVERRIDE; 49 const content::NotificationDetails& details) OVERRIDE;
49 50
50 content::NotificationRegistrar registrar_; 51 content::NotificationRegistrar registrar_;
51 52
52 // Observer to take some action when the dialog is ready for JavaScript 53 // Observer to take some action when the dialog is ready for JavaScript
53 // injection. 54 // injection.
54 content::JsInjectionReadyObserver* js_injection_ready_observer_; 55 content::JsInjectionReadyObserver* js_injection_ready_observer_;
55 content::WebUI* web_ui_; 56 content::WebUI* web_ui_;
56 bool done_; 57 bool done_;
57 bool running_; 58 bool running_;
59 scoped_refptr<ui_test_utils::MessageLoopRunner> message_loop_runner_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(TestWebDialogObserver); 61 DISALLOW_COPY_AND_ASSIGN(TestWebDialogObserver);
60 }; 62 };
61 63
62 #endif // CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_ 64 #endif // CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | chrome/test/base/test_web_dialog_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698