diff options
author | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 07:27:27 +0000 |
---|---|---|
committer | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 07:27:27 +0000 |
commit | 5c34e39cea9e91fda04224aa7f5cb490fd5fb0c4 (patch) | |
tree | b30014e7c4d4f4be968ee4fa358948c0aa8739e1 /chrome/test/ui_test_utils.h | |
parent | 12ea22a1337a63db017338156ba56abd62beacbd (diff) | |
download | chromium_src-5c34e39cea9e91fda04224aa7f5cb490fd5fb0c4.zip chromium_src-5c34e39cea9e91fda04224aa7f5cb490fd5fb0c4.tar.gz chromium_src-5c34e39cea9e91fda04224aa7f5cb490fd5fb0c4.tar.bz2 |
Move use_host_network test out of ChromeFrame.
Some refactoring of ExternalTabUITestMockClient.
TEST=ui_tests
Review URL: http://codereview.chromium.org/384058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32504 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui_test_utils.h')
-rw-r--r-- | chrome/test/ui_test_utils.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/test/ui_test_utils.h b/chrome/test/ui_test_utils.h index c7cab8c..89dc8fc 100644 --- a/chrome/test/ui_test_utils.h +++ b/chrome/test/ui_test_utils.h @@ -144,7 +144,7 @@ class TimedMessageLoopRunner { // Attach to an existing message loop. explicit TimedMessageLoopRunner(MessageLoop* loop) - : loop_(loop), owned_(false) {} + : loop_(loop), owned_(false), quit_loop_invoked_(false) {} ~TimedMessageLoopRunner(); @@ -157,9 +157,14 @@ class TimedMessageLoopRunner { // Post delayed Quit task to the message loop. void QuitAfter(int ms); + bool WasTimedOut() const { + return !quit_loop_invoked_; + } + private: MessageLoop* loop_; bool owned_; + bool quit_loop_invoked_; DISALLOW_COPY_AND_ASSIGN(TimedMessageLoopRunner); }; |