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

Unified Diff: chrome/test/base/invoke_ui_browser_test.h

Issue 2382963002: Views: Add two disabled tests for invoking the CC unmask prompt dialog. (Closed)
Patch Set: Initial approach for invoking UI tests. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/invoke_ui_browser_test.h
diff --git a/chrome/test/base/invoke_ui_browser_test.h b/chrome/test/base/invoke_ui_browser_test.h
new file mode 100644
index 0000000000000000000000000000000000000000..e9f0d8f2d4df425614183479fe8504f862275f76
--- /dev/null
+++ b/chrome/test/base/invoke_ui_browser_test.h
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_TEST_BASE_INVOKE_UI_BROWSER_TEST_H_
+#define CHROME_TEST_BASE_INVOKE_UI_BROWSER_TEST_H_
+
+namespace base {
+class CommandLine;
+}
+
+class InvokeUIBrowserTest {
tapted 2016/10/13 00:53:34 I'd probably have this inherit from InProcessBrows
Patti Lor 2016/10/13 05:39:21 Deleted this as per your other comments.
+
+ public:
+
+ // Call in SetCommandLineFlags(). Extends the default timeout to an
+ // "almost-infinite" number to avoid the UI closing unexpectedly.
+ void SetCommandLineFlags(base::CommandLine* command_line);
tapted 2016/10/13 00:53:34 This this can override SetUpCommandLine and check
Patti Lor 2016/10/13 05:39:21 Did you have something in mind for fixing the time
tapted 2016/10/16 23:48:01 I think we can make a python script to collect all
Patti Lor 2016/10/17 23:26:08 Ah ok, I didn't realise you had a separate thing i
+
+ // Call before the default SetUp() method. On Mac, this will allow the process
+ // to get keyboard focus so that UI can be interacted with using the keyboard.
+ void BeforeSetUp();
+
+ // Call before the default TearDownOnMainThread(). Starts a runloop so
+ // that tests won't close on finishing.
+ void BeforeTearDownOnMainThread();
+
+};
+
+#endif // CHROME_TEST_BASE_INVOKE_UI_BROWSER_TEST_H_

Powered by Google App Engine
This is Rietveld 408576698