Chromium Code Reviews| 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_ |