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

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

Issue 6306004: More ChromeFrame perf test fixes to account for the changes in the UITest fun... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome_frame/test/perf/chrome_frame_perftest.cc ('k') | no next file » | 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 4
5 #include "base/test/perf_test_suite.h" 5 #include "base/test/perf_test_suite.h"
6 #include "base/scoped_ptr.h" 6 #include "base/scoped_ptr.h"
7 #include "base/threading/platform_thread.h" 7 #include "base/threading/platform_thread.h"
8 #include "chrome/common/chrome_paths.h" 8 #include "chrome/common/chrome_paths.h"
9 #include "chrome_frame/test/chrome_frame_test_utils.h" 9 #include "chrome_frame/test/chrome_frame_test_utils.h"
10 #include "chrome_frame/test_utils.h" 10 #include "chrome_frame/test_utils.h"
11 #include "chrome_frame/utils.h" 11 #include "chrome_frame/utils.h"
12 12
13 void PureCall() {
14 __debugbreak();
15 }
16
13 int main(int argc, char **argv) { 17 int main(int argc, char **argv) {
14 base::PerfTestSuite perf_suite(argc, argv); 18 base::PerfTestSuite perf_suite(argc, argv);
15 chrome::RegisterPathProvider(); 19 chrome::RegisterPathProvider();
16 base::PlatformThread::SetName("ChromeFrame perf tests"); 20 base::PlatformThread::SetName("ChromeFrame perf tests");
17 21
22 _set_purecall_handler(PureCall);
23
18 SetConfigBool(kChromeFrameHeadlessMode, true); 24 SetConfigBool(kChromeFrameHeadlessMode, true);
19 SetConfigBool(kChromeFrameUnpinnedMode, true); 25 SetConfigBool(kChromeFrameUnpinnedMode, true);
20 26
21 base::ProcessHandle crash_service = chrome_frame_test::StartCrashService(); 27 base::ProcessHandle crash_service = chrome_frame_test::StartCrashService();
22 28
23 // Use ctor/raii to register the local Chrome Frame dll. 29 // Use ctor/raii to register the local Chrome Frame dll.
24 scoped_ptr<ScopedChromeFrameRegistrar> registrar( 30 scoped_ptr<ScopedChromeFrameRegistrar> registrar(
25 new ScopedChromeFrameRegistrar); 31 new ScopedChromeFrameRegistrar);
26 int ret = perf_suite.Run(); 32 int ret = perf_suite.Run();
27 33
28 DeleteConfigValue(kChromeFrameHeadlessMode); 34 DeleteConfigValue(kChromeFrameHeadlessMode);
29 DeleteConfigValue(kChromeFrameUnpinnedMode); 35 DeleteConfigValue(kChromeFrameUnpinnedMode);
30 36
31 if (crash_service) 37 if (crash_service)
32 base::KillProcess(crash_service, 0, false); 38 base::KillProcess(crash_service, 0, false);
33 return ret; 39 return ret;
34 } 40 }
OLDNEW
« no previous file with comments | « chrome_frame/test/perf/chrome_frame_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698