OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/string_util.h" | |
10 #include "base/stringprintf.h" | |
11 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" |
| 11 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/test/test_timeouts.h" | 13 #include "base/test/test_timeouts.h" |
14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
15 #include "chrome/test/automation/tab_proxy.h" | 15 #include "chrome/test/automation/tab_proxy.h" |
16 #include "chrome/test/ui/ui_perf_test.h" | 16 #include "chrome/test/ui/ui_perf_test.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Provides a UI Test that lets us take the browser to a url, and | 20 // Provides a UI Test that lets us take the browser to a url, and |
21 // wait for a cookie value to be set or a JavaScript expression to evaluate | 21 // wait for a cookie value to be set or a JavaScript expression to evaluate |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Write out the JS Variable if requested | 175 // Write out the JS Variable if requested |
176 base::FilePath jsvar_output_path = | 176 base::FilePath jsvar_output_path = |
177 cmd_line->GetSwitchValuePath("jsvar_output"); | 177 cmd_line->GetSwitchValuePath("jsvar_output"); |
178 if (!jsvar_output_path.value().empty()) { | 178 if (!jsvar_output_path.value().empty()) { |
179 ASSERT_TRUE(WriteValueToFile(result.javascript_variable, | 179 ASSERT_TRUE(WriteValueToFile(result.javascript_variable, |
180 jsvar_output_path)); | 180 jsvar_output_path)); |
181 } | 181 } |
182 } | 182 } |
183 | 183 |
184 } // namespace | 184 } // namespace |
OLD | NEW |