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

Side by Side Diff: net/disk_cache/stress_cache.cc

Issue 136683004: Removes MessageLoop::TYPE_XXX where possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve merge Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 is a simple application that stress-tests the crash recovery of the disk 5 // This is a simple application that stress-tests the crash recovery of the disk
6 // cache. The main application starts a copy of itself on a loop, checking the 6 // cache. The main application starts a copy of itself on a loop, checking the
7 // exit code of the child process. When the child dies in an unexpected way, 7 // exit code of the child process. When the child dies in an unexpected way,
8 // the main application quits. 8 // the main application quits.
9 9
10 // The child application has two threads: one to exercise the cache in an 10 // The child application has two threads: one to exercise the cache in an
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 logging::LogEventProvider::Initialize(kStressCacheTraceProviderName); 272 logging::LogEventProvider::Initialize(kStressCacheTraceProviderName);
273 #else 273 #else
274 CommandLine::Init(argc, argv); 274 CommandLine::Init(argc, argv);
275 logging::LoggingSettings settings; 275 logging::LoggingSettings settings;
276 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; 276 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
277 logging::InitLogging(settings); 277 logging::InitLogging(settings);
278 #endif 278 #endif
279 279
280 // Some time for the memory manager to flush stuff. 280 // Some time for the memory manager to flush stuff.
281 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(3)); 281 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(3));
282 base::MessageLoop message_loop(base::MessageLoop::TYPE_IO); 282 base::MessageLoopForIO message_loop;
283 283
284 char* end; 284 char* end;
285 long int iteration = strtol(argv[1], &end, 0); 285 long int iteration = strtol(argv[1], &end, 0);
286 286
287 if (!StartCrashThread()) { 287 if (!StartCrashThread()) {
288 printf("failed to start thread\n"); 288 printf("failed to start thread\n");
289 return kError; 289 return kError;
290 } 290 }
291 291
292 StressTheCache(iteration); 292 StressTheCache(iteration);
293 return 0; 293 return 0;
294 } 294 }
OLDNEW
« no previous file with comments | « media/base/user_input_monitor_unittest.cc ('k') | net/test/embedded_test_server/embedded_test_server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698