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 // This file provides reliablity test which runs under UI test framework. The | 5 // This file provides reliablity test which runs under UI test framework. The |
6 // test is intended to run within QEMU environment. | 6 // test is intended to run within QEMU environment. |
7 // | 7 // |
8 // Usage 1: reliability_test | 8 // Usage 1: reliability_test |
9 // Upon invocation, it visits a hard coded list of sample URLs. This is mainly | 9 // Upon invocation, it visits a hard coded list of sample URLs. This is mainly |
10 // used by buildbot, to verify reliability_test itself runs ok. | 10 // used by buildbot, to verify reliability_test itself runs ok. |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 g_test_log_path = base::FilePath(FILE_PATH_LITERAL("test_log.log")); | 300 g_test_log_path = base::FilePath(FILE_PATH_LITERAL("test_log.log")); |
301 test_log.open(g_test_log_path.value().c_str()); | 301 test_log.open(g_test_log_path.value().c_str()); |
302 | 302 |
303 // Get the version of Chrome we're running. | 303 // Get the version of Chrome we're running. |
304 std::string last_change; | 304 std::string last_change; |
305 #if defined(OS_WIN) | 305 #if defined(OS_WIN) |
306 // Check file version info for chrome dll. | 306 // Check file version info for chrome dll. |
307 scoped_ptr<FileVersionInfo> file_info; | 307 scoped_ptr<FileVersionInfo> file_info; |
308 file_info.reset( | 308 file_info.reset( |
309 FileVersionInfo::CreateFileVersionInfo(base::FilePath(kChromeDll))); | 309 FileVersionInfo::CreateFileVersionInfo(base::FilePath(kChromeDll))); |
310 last_change = WideToASCII(file_info->last_change()); | 310 last_change = base::WideToASCII(file_info->last_change()); |
311 #elif defined(OS_POSIX) | 311 #elif defined(OS_POSIX) |
312 // TODO(fmeawad): On Mac, the version retrieved here belongs to the test | 312 // TODO(fmeawad): On Mac, the version retrieved here belongs to the test |
313 // module and not the chrome binary, need to be changed to chrome binary | 313 // module and not the chrome binary, need to be changed to chrome binary |
314 // instead. | 314 // instead. |
315 chrome::VersionInfo version_info; | 315 chrome::VersionInfo version_info; |
316 last_change = version_info.LastChange(); | 316 last_change = version_info.LastChange(); |
317 #endif // !defined(OS_WIN) | 317 #endif // !defined(OS_WIN) |
318 test_log << "Last Change: "; | 318 test_log << "Last Change: "; |
319 test_log << last_change << std::endl; | 319 test_log << last_change << std::endl; |
320 | 320 |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 if (!g_end_url.empty()) { | 830 if (!g_end_url.empty()) { |
831 NavigateToURLLogResult( | 831 NavigateToURLLogResult( |
832 g_end_url, log_file, NULL, g_continuous_load, false); | 832 g_end_url, log_file, NULL, g_continuous_load, false); |
833 } | 833 } |
834 | 834 |
835 log_file.close(); | 835 log_file.close(); |
836 } | 836 } |
837 | 837 |
838 } // namespace | 838 } // namespace |
839 | 839 |
OLD | NEW |