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 #include "chrome/test/base/invoke_ui_browser_test.h" | |
| 6 | |
| 7 #include "base/command_line.h" | |
| 8 #include "base/run_loop.h" | |
| 9 #include "base/strings/string_number_conversions.h" | |
| 10 #include "base/test/test_switches.h" | |
| 11 #include "base/test/test_timeouts.h" | |
| 12 #include "ui/base/ui_base_switches.cc" | |
| 13 | |
| 14 #if defined(OS_MACOSX) | |
| 15 #include "chrome/test/base/move_test_process_to_front_mac.h" | |
| 16 #endif | |
| 17 | |
| 18 // TODO(patricialor): This is being run, but none of the flags set here are | |
| 19 // actually set. Fix! | |
| 20 void InvokeUIBrowserTest::SetCommandLineFlags(base::CommandLine* command_line) { | |
| 21 command_line->AppendSwitchASCII( | |
| 22 switches::kUiTestActionMaxTimeout, | |
| 23 base::Int64ToString(100000000)); | |
| 24 command_line->AppendSwitchASCII( | |
| 25 switches::kTestLauncherTimeout, | |
| 26 base::Int64ToString(100000000)); | |
| 27 } | |
| 28 | |
| 29 void InvokeUIBrowserTest::BeforeSetUp() { | |
| 30 #if defined(OS_MACOSX) | |
| 31 SetProcessToFront(); | |
| 32 #endif | |
| 33 } | |
| 34 | |
| 35 void InvokeUIBrowserTest::BeforeTearDownOnMainThread() { | |
| 36 base::RunLoop().Run(); | |
|
tapted
2016/10/13 00:53:34
I'd put this in the test case itself. So hm - mayb
Patti Lor
2016/10/13 05:39:20
Done.
| |
| 37 } | |
| 38 | |
| 39 | |
| OLD | NEW |