| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 // This command-line program generates the set of files needed for the crash- | 5 // This command-line program generates the set of files needed for the crash- |
| 6 // cache unit tests (DiskCacheTest,CacheBackend_Recover*). This program only | 6 // cache unit tests (DiskCacheTest,CacheBackend_Recover*). This program only |
| 7 // works properly on debug mode, because the crash functionality is not compiled | 7 // works properly on debug mode, because the crash functionality is not compiled |
| 8 // on release builds of the cache. | 8 // on release builds of the cache. |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/at_exit.h" | 12 #include "base/at_exit.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
| 17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 18 #include "base/process_util.h" | 18 #include "base/process_util.h" |
| 19 #include "base/string_number_conversions.h" | 19 #include "base/string_number_conversions.h" |
| 20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/thread.h" | 21 #include "base/threading/thread.h" |
| 22 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
| 23 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
| 24 #include "net/base/test_completion_callback.h" | 24 #include "net/base/test_completion_callback.h" |
| 25 #include "net/disk_cache/backend_impl.h" | 25 #include "net/disk_cache/backend_impl.h" |
| 26 #include "net/disk_cache/disk_cache.h" | 26 #include "net/disk_cache/disk_cache.h" |
| 27 #include "net/disk_cache/disk_cache_test_util.h" | 27 #include "net/disk_cache/disk_cache_test_util.h" |
| 28 #include "net/disk_cache/rankings.h" | 28 #include "net/disk_cache/rankings.h" |
| 29 | 29 |
| 30 using base::Time; | 30 using base::Time; |
| 31 | 31 |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 | 360 |
| 361 FilePath path; | 361 FilePath path; |
| 362 PathService::Get(base::DIR_SOURCE_ROOT, &path); | 362 PathService::Get(base::DIR_SOURCE_ROOT, &path); |
| 363 path = path.AppendASCII("net"); | 363 path = path.AppendASCII("net"); |
| 364 path = path.AppendASCII("data"); | 364 path = path.AppendASCII("data"); |
| 365 path = path.AppendASCII("cache_tests"); | 365 path = path.AppendASCII("cache_tests"); |
| 366 path = path.AppendASCII("new_crashes"); | 366 path = path.AppendASCII("new_crashes"); |
| 367 | 367 |
| 368 return SlaveCode(path, action); | 368 return SlaveCode(path, action); |
| 369 } | 369 } |
| OLD | NEW |