Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_TEST_BASE_INVOKE_UI_BROWSER_TEST_H_ | |
| 6 #define CHROME_TEST_BASE_INVOKE_UI_BROWSER_TEST_H_ | |
| 7 | |
| 8 namespace base { | |
| 9 class CommandLine; | |
| 10 } | |
| 11 | |
| 12 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.
| |
| 13 | |
| 14 public: | |
| 15 | |
| 16 // Call in SetCommandLineFlags(). Extends the default timeout to an | |
| 17 // "almost-infinite" number to avoid the UI closing unexpectedly. | |
| 18 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
| |
| 19 | |
| 20 // Call before the default SetUp() method. On Mac, this will allow the process | |
| 21 // to get keyboard focus so that UI can be interacted with using the keyboard. | |
| 22 void BeforeSetUp(); | |
| 23 | |
| 24 // Call before the default TearDownOnMainThread(). Starts a runloop so | |
| 25 // that tests won't close on finishing. | |
| 26 void BeforeTearDownOnMainThread(); | |
| 27 | |
| 28 }; | |
| 29 | |
| 30 #endif // CHROME_TEST_BASE_INVOKE_UI_BROWSER_TEST_H_ | |
| OLD | NEW |