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

Side by Side Diff: content/public/test/test_frame_navigation_observer.h

Issue 2630683003: Revert of Convert more test helpers to base::RunLoop, fix page title checks. (Closed)
Patch Set: Created 3 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_ 5 #ifndef CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_
6 #define CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_ 6 #define CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/run_loop.h"
15 #include "content/public/browser/web_contents_observer.h" 14 #include "content/public/browser/web_contents_observer.h"
16 #include "content/public/test/browser_test_utils.h" 15 #include "content/public/test/browser_test_utils.h"
17 #include "content/public/test/test_utils.h" 16 #include "content/public/test/test_utils.h"
18 17
19 class GURL; 18 class GURL;
20 19
21 namespace content { 20 namespace content {
22 class RenderFrameHost; 21 class RenderFrameHost;
23 22
24 // Helper for waiting until the navigation in a specific frame tree node (and 23 // Helper for waiting until the navigation in a specific frame tree node (and
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // If true the navigation has started. 57 // If true the navigation has started.
59 bool navigation_started_; 58 bool navigation_started_;
60 59
61 // If true, the navigation has committed. 60 // If true, the navigation has committed.
62 bool has_committed_; 61 bool has_committed_;
63 62
64 // If true, this object is waiting for commit only, not for the full load 63 // If true, this object is waiting for commit only, not for the full load
65 // of the document. 64 // of the document.
66 bool wait_for_commit_; 65 bool wait_for_commit_;
67 66
68 // The RunLoop used to spin the message loop. 67 // The MessageLoopRunner used to spin the message loop.
69 base::RunLoop run_loop_; 68 scoped_refptr<MessageLoopRunner> message_loop_runner_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(TestFrameNavigationObserver); 70 DISALLOW_COPY_AND_ASSIGN(TestFrameNavigationObserver);
72 }; 71 };
73 72
74 } // namespace content 73 } // namespace content
75 74
76 #endif // CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_ 75 #endif // CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | content/public/test/test_frame_navigation_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698