| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 tests which run for ChromeFrame. | 5 // This file provides reliablity tests which run for ChromeFrame. |
| 6 // | 6 // |
| 7 // Usage: | 7 // Usage: |
| 8 // <reliability test exe> --list=file --startline=start --endline=end [...] | 8 // <reliability test exe> --list=file --startline=start --endline=end [...] |
| 9 // Upon invocation, it visits each of the URLs on line numbers between start | 9 // Upon invocation, it visits each of the URLs on line numbers between start |
| 10 // and end, inclusive, stored in the input file. The line number starts from 1. | 10 // and end, inclusive, stored in the input file. The line number starts from 1. |
| 11 // | 11 // |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 base::Time time_now = base::Time::Now(); | 174 base::Time time_now = base::Time::Now(); |
| 175 double time_start = time_now.ToDoubleT(); | 175 double time_start = time_now.ToDoubleT(); |
| 176 test_log << "Test Start: "; | 176 test_log << "Test Start: "; |
| 177 test_log << base::TimeFormatFriendlyDateAndTime(time_now) << std::endl; | 177 test_log << base::TimeFormatFriendlyDateAndTime(time_now) << std::endl; |
| 178 | 178 |
| 179 HRESULT hr = E_FAIL; | 179 HRESULT hr = E_FAIL; |
| 180 | 180 |
| 181 chrome_frame_test::TimedMsgLoop message_loop; | 181 chrome_frame_test::TimedMsgLoop message_loop; |
| 182 | 182 |
| 183 // Launch IE. | 183 // Launch IE. |
| 184 ScopedComPtr<IWebBrowser2> web_browser2; | 184 base::win::ScopedComPtr<IWebBrowser2> web_browser2; |
| 185 hr = chrome_frame_test::LaunchIEAsComServer(web_browser2.Receive()); | 185 hr = chrome_frame_test::LaunchIEAsComServer(web_browser2.Receive()); |
| 186 EXPECT_HRESULT_SUCCEEDED(hr); | 186 EXPECT_HRESULT_SUCCEEDED(hr); |
| 187 EXPECT_TRUE(web_browser2.get() != NULL); | 187 EXPECT_TRUE(web_browser2.get() != NULL); |
| 188 web_browser2->put_Visible(VARIANT_TRUE); | 188 web_browser2->put_Visible(VARIANT_TRUE); |
| 189 | 189 |
| 190 // Log Browser Launched time. | 190 // Log Browser Launched time. |
| 191 time_now = base::Time::Now(); | 191 time_now = base::Time::Now(); |
| 192 test_log << "browser_launched_seconds="; | 192 test_log << "browser_launched_seconds="; |
| 193 test_log << (time_now.ToDoubleT() - time_start) << std::endl; | 193 test_log << (time_now.ToDoubleT() - time_start) << std::endl; |
| 194 | 194 |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); | 579 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); |
| 580 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { | 580 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { |
| 581 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch); | 581 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch); |
| 582 if (!file_util::AbsolutePath(&g_v8_log_path)) | 582 if (!file_util::AbsolutePath(&g_v8_log_path)) |
| 583 g_v8_log_path = FilePath(); | 583 g_v8_log_path = FilePath(); |
| 584 } | 584 } |
| 585 } | 585 } |
| 586 } | 586 } |
| 587 } | 587 } |
| 588 } | 588 } |
| OLD | NEW |