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

Unified Diff: chrome/test/interactive_ui/view_event_test_base.h

Issue 355024: Addin a time-out to view base tests to prevent them from... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/interactive_ui/view_event_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/interactive_ui/view_event_test_base.h
===================================================================
--- chrome/test/interactive_ui/view_event_test_base.h (revision 30896)
+++ chrome/test/interactive_ui/view_event_test_base.h (working copy)
@@ -6,6 +6,7 @@
#define CHROME_TEST_INTERACTIVE_UI_VIEW_EVENT_TEST_BASE_H_
#include "base/message_loop.h"
+#include "base/task.h"
#include "base/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "views/window/window_delegate.h"
@@ -119,6 +120,9 @@
// supplied task and if there are failures invokes Done.
void RunTestMethod(Task* task);
+ // Called when the test has been running for longer than expected.
+ void TimedOut();
+
// The content of the Window.
views::View* content_view_;
@@ -127,6 +131,9 @@
MessageLoopForUI message_loop_;
+ // Method factory used for time-outs.
+ ScopedRunnableMethodFactory<ViewEventTestBase> method_factory_;
+
DISALLOW_COPY_AND_ASSIGN(ViewEventTestBase);
};
« no previous file with comments | « no previous file | chrome/test/interactive_ui/view_event_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698