Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(713)

Side by Side Diff: chrome_frame/test/perf/chrome_frame_perftest.cc

Issue 3172009: Cleanup Registry API: part 3. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: chrome fixes Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome_frame/test/chrome_frame_test_utils.cc ('k') | net/base/platform_mime_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 RunStartupTest("creation_cold", "t", "", true /* cold */, 1084 RunStartupTest("creation_cold", "t", "", true /* cold */,
1085 arraysize(binaries_to_evict), binaries_to_evict, 1085 arraysize(binaries_to_evict), binaries_to_evict,
1086 true /* important */, false); 1086 true /* important */, false);
1087 } 1087 }
1088 1088
1089 // Attempt to evict the Flash control can fail on the buildbot as the dll 1089 // Attempt to evict the Flash control can fail on the buildbot as the dll
1090 // is marked read only. The test run is aborted if we fail to evict the file 1090 // is marked read only. The test run is aborted if we fail to evict the file
1091 // from the cache. This could also fail if the Flash control is in use. 1091 // from the cache. This could also fail if the Flash control is in use.
1092 // On Vista this could fail because of UAC 1092 // On Vista this could fail because of UAC
1093 TEST_F(FlashCreationTest, PerfCold) { 1093 TEST_F(FlashCreationTest, PerfCold) {
1094 RegKey flash_key(HKEY_CLASSES_ROOT, kFlashControlKey); 1094 RegKey flash_key(HKEY_CLASSES_ROOT, kFlashControlKey, KEY_READ);
1095 1095
1096 std::wstring plugin_path; 1096 std::wstring plugin_path;
1097 ASSERT_TRUE(flash_key.ReadValue(L"", &plugin_path)); 1097 ASSERT_TRUE(flash_key.ReadValue(L"", &plugin_path));
1098 ASSERT_FALSE(plugin_path.empty()); 1098 ASSERT_FALSE(plugin_path.empty());
1099 1099
1100 FilePath flash_path = FilePath::FromWStringHack(plugin_path); 1100 FilePath flash_path = FilePath::FromWStringHack(plugin_path);
1101 FilePath binaries_to_evict[] = {flash_path}; 1101 FilePath binaries_to_evict[] = {flash_path};
1102 1102
1103 RunStartupTest("creation_cold", "t_flash", "", true /* cold */, 1103 RunStartupTest("creation_cold", "t_flash", "", true /* cold */,
1104 arraysize(binaries_to_evict), binaries_to_evict, 1104 arraysize(binaries_to_evict), binaries_to_evict,
1105 false/* important */, true); 1105 false/* important */, true);
1106 } 1106 }
1107 1107
1108 // This test would fail on Vista due to UAC or if the Silverlight control is 1108 // This test would fail on Vista due to UAC or if the Silverlight control is
1109 // in use. The test run is aborted if we fail to evict the file from the cache. 1109 // in use. The test run is aborted if we fail to evict the file from the cache.
1110 // Disabling this test as the Silverlight dll does not seem to get unloaded 1110 // Disabling this test as the Silverlight dll does not seem to get unloaded
1111 // correctly causing the attempt to evict the dll from the system cache to 1111 // correctly causing the attempt to evict the dll from the system cache to
1112 // fail. 1112 // fail.
1113 TEST_F(SilverlightCreationTest, DISABLED_PerfCold) { 1113 TEST_F(SilverlightCreationTest, DISABLED_PerfCold) {
1114 RegKey silverlight_key(HKEY_CLASSES_ROOT, kSilverlightControlKey); 1114 RegKey silverlight_key(HKEY_CLASSES_ROOT, kSilverlightControlKey, KEY_READ);
1115 1115
1116 std::wstring plugin_path; 1116 std::wstring plugin_path;
1117 ASSERT_TRUE(silverlight_key.ReadValue(L"", &plugin_path)); 1117 ASSERT_TRUE(silverlight_key.ReadValue(L"", &plugin_path));
1118 ASSERT_FALSE(plugin_path.empty()); 1118 ASSERT_FALSE(plugin_path.empty());
1119 1119
1120 FilePath silverlight_path = FilePath::FromWStringHack(plugin_path); 1120 FilePath silverlight_path = FilePath::FromWStringHack(plugin_path);
1121 FilePath binaries_to_evict[] = {silverlight_path}; 1121 FilePath binaries_to_evict[] = {silverlight_path};
1122 1122
1123 RunStartupTest("creation_cold", "t_silverlight", "", true /* cold */, 1123 RunStartupTest("creation_cold", "t_silverlight", "", true /* cold */,
1124 arraysize(binaries_to_evict), binaries_to_evict, 1124 arraysize(binaries_to_evict), binaries_to_evict,
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 PrintPerfTestResults(automation_provider_connect_monitor, kNumCycles, 1454 PrintPerfTestResults(automation_provider_connect_monitor, kNumCycles,
1455 "automationproviderconnect"); 1455 "automationproviderconnect");
1456 PrintPerfTestResults(external_tab_navigate_monitor, kNumCycles, 1456 PrintPerfTestResults(external_tab_navigate_monitor, kNumCycles,
1457 "externaltabnavigate"); 1457 "externaltabnavigate");
1458 PrintPerfTestResults(renderer_main_monitor, kNumCycles, 1458 PrintPerfTestResults(renderer_main_monitor, kNumCycles,
1459 "beginrenderermain"); 1459 "beginrenderermain");
1460 #ifdef NDEBUG 1460 #ifdef NDEBUG
1461 PrintPerfTestResults(pre_read_chrome_monitor, kNumCycles, "PreReadImage"); 1461 PrintPerfTestResults(pre_read_chrome_monitor, kNumCycles, "PreReadImage");
1462 #endif // NDEBUG 1462 #endif // NDEBUG
1463 } 1463 }
OLDNEW
« no previous file with comments | « chrome_frame/test/chrome_frame_test_utils.cc ('k') | net/base/platform_mime_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698