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

Side by Side Diff: chrome_frame/test/net/fake_external_tab.cc

Issue 2822035: Change chrome from statically enabling high resolution timers on windows... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « base/time_win.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome_frame/test/net/fake_external_tab.h" 5 #include "chrome_frame/test/net/fake_external_tab.h"
6 6
7 #include <exdisp.h> 7 #include <exdisp.h>
8 8
9 #include "app/app_paths.h" 9 #include "app/app_paths.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 297
298 // Override virtual void Initialize to not call icu initialize 298 // Override virtual void Initialize to not call icu initialize
299 void CFUrlRequestUnittestRunner::Initialize() { 299 void CFUrlRequestUnittestRunner::Initialize() {
300 DCHECK(::GetCurrentThreadId() == test_thread_id_); 300 DCHECK(::GetCurrentThreadId() == test_thread_id_);
301 301
302 // Start by replicating some of the steps that would otherwise be 302 // Start by replicating some of the steps that would otherwise be
303 // done by TestSuite::Initialize. We can't call the base class 303 // done by TestSuite::Initialize. We can't call the base class
304 // directly because it will attempt to initialize some things such as 304 // directly because it will attempt to initialize some things such as
305 // ICU that have already been initialized for this process. 305 // ICU that have already been initialized for this process.
306 InitializeLogging(); 306 InitializeLogging();
307 base::Time::UseHighResolutionTimer(true); 307 base::Time::EnableHighResolutionTimer(true);
308 308
309 SuppressErrorDialogs(); 309 SuppressErrorDialogs();
310 DebugUtil::SuppressDialogs(); 310 DebugUtil::SuppressDialogs();
311 #if !defined(PURIFY) 311 #if !defined(PURIFY)
312 logging::SetLogAssertHandler(UnitTestAssertHandler); 312 logging::SetLogAssertHandler(UnitTestAssertHandler);
313 #endif // !defined(PURIFY) 313 #endif // !defined(PURIFY)
314 314
315 // Next, do some initialization for NetTestSuite. 315 // Next, do some initialization for NetTestSuite.
316 NetTestSuite::InitializeTestThread(); 316 NetTestSuite::InitializeTestThread();
317 } 317 }
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 SupplyProxyCredentials credentials("user", "secret"); 466 SupplyProxyCredentials credentials("user", "secret");
467 // Check for a dialog class ("#32770") 467 // Check for a dialog class ("#32770")
468 watchdog.AddObserver(&credentials, "#32770"); 468 watchdog.AddObserver(&credentials, "#32770");
469 testing::InitGoogleTest(&argc, argv); 469 testing::InitGoogleTest(&argc, argv);
470 FilterDisabledTests(); 470 FilterDisabledTests();
471 PluginService::EnableChromePlugins(false); 471 PluginService::EnableChromePlugins(false);
472 CFUrlRequestUnittestRunner test_suite(argc, argv); 472 CFUrlRequestUnittestRunner test_suite(argc, argv);
473 test_suite.RunMainUIThread(); 473 test_suite.RunMainUIThread();
474 return 0; 474 return 0;
475 } 475 }
OLDNEW
« no previous file with comments | « base/time_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698