OLD | NEW |
1 // Copyright (c) 2011 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 #include "chrome_frame/test/perf/chrome_frame_perftest.h" | 4 #include "chrome_frame/test/perf/chrome_frame_perftest.h" |
5 | 5 |
6 #include <atlwin.h> | 6 #include <atlwin.h> |
7 #include <atlhost.h> | 7 #include <atlhost.h> |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 #include <string> | 10 #include <string> |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 285 |
286 class ChromeFrameStartupTest : public ChromeFramePerfTestBase { | 286 class ChromeFrameStartupTest : public ChromeFramePerfTestBase { |
287 public: | 287 public: |
288 ChromeFrameStartupTest() {} | 288 ChromeFrameStartupTest() {} |
289 | 289 |
290 virtual void SetUp() { | 290 virtual void SetUp() { |
291 ASSERT_TRUE(PathService::Get(chrome::DIR_APP, &dir_app_)); | 291 ASSERT_TRUE(PathService::Get(chrome::DIR_APP, &dir_app_)); |
292 | 292 |
293 chrome_dll_ = dir_app_.Append(L"chrome.dll"); | 293 chrome_dll_ = dir_app_.Append(L"chrome.dll"); |
294 chrome_exe_ = dir_app_.Append(chrome::kBrowserProcessExecutableName); | 294 chrome_exe_ = dir_app_.Append(chrome::kBrowserProcessExecutableName); |
295 chrome_frame_dll_ = dir_app_.Append(L"servers"); | 295 chrome_frame_dll_ = dir_app_.Append(kChromeFrameDllName); |
296 chrome_frame_dll_ = chrome_frame_dll_.Append(kChromeFrameDllName); | |
297 icu_dll_ = dir_app_.Append(L"icudt.dll"); | 296 icu_dll_ = dir_app_.Append(L"icudt.dll"); |
298 avcodec_dll_ = dir_app_.Append(L"avcodec-53.dll"); | 297 avcodec_dll_ = dir_app_.Append(L"avcodec-53.dll"); |
299 avformat_dll_ = dir_app_.Append(L"avformat-53.dll"); | 298 avformat_dll_ = dir_app_.Append(L"avformat-53.dll"); |
300 avutil_dll_ = dir_app_.Append(L"avutil-51.dll"); | 299 avutil_dll_ = dir_app_.Append(L"avutil-51.dll"); |
301 } | 300 } |
302 | 301 |
303 // TODO(iyengar) | 302 // TODO(iyengar) |
304 // This function is similar to the RunStartupTest function used in chrome | 303 // This function is similar to the RunStartupTest function used in chrome |
305 // startup tests. Refactor into a common implementation. | 304 // startup tests. Refactor into a common implementation. |
306 void RunStartupTest(const char* graph, const char* trace, | 305 void RunStartupTest(const char* graph, const char* trace, |
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1473 PrintPerfTestResults(automation_provider_connect_monitor, kNumCycles, | 1472 PrintPerfTestResults(automation_provider_connect_monitor, kNumCycles, |
1474 "automationproviderconnect"); | 1473 "automationproviderconnect"); |
1475 PrintPerfTestResults(external_tab_navigate_monitor, kNumCycles, | 1474 PrintPerfTestResults(external_tab_navigate_monitor, kNumCycles, |
1476 "externaltabnavigate"); | 1475 "externaltabnavigate"); |
1477 PrintPerfTestResults(renderer_main_monitor, kNumCycles, | 1476 PrintPerfTestResults(renderer_main_monitor, kNumCycles, |
1478 "beginrenderermain"); | 1477 "beginrenderermain"); |
1479 #ifdef NDEBUG | 1478 #ifdef NDEBUG |
1480 PrintPerfTestResults(pre_read_chrome_monitor, kNumCycles, "PreReadImage"); | 1479 PrintPerfTestResults(pre_read_chrome_monitor, kNumCycles, "PreReadImage"); |
1481 #endif // NDEBUG | 1480 #endif // NDEBUG |
1482 } | 1481 } |
OLD | NEW |