OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/strings/string_number_conversions.h" |
20 #include "base/string_util.h" | 20 #include "base/strings/string_util.h" |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
23 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
24 #include "net/base/net_export.h" | 24 #include "net/base/net_export.h" |
25 #include "net/base/test_completion_callback.h" | 25 #include "net/base/test_completion_callback.h" |
26 #include "net/disk_cache/backend_impl.h" | 26 #include "net/disk_cache/backend_impl.h" |
27 #include "net/disk_cache/disk_cache.h" | 27 #include "net/disk_cache/disk_cache.h" |
28 #include "net/disk_cache/disk_cache_test_util.h" | 28 #include "net/disk_cache/disk_cache_test_util.h" |
29 #include "net/disk_cache/rankings.h" | 29 #include "net/disk_cache/rankings.h" |
30 | 30 |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 371 |
372 base::FilePath path; | 372 base::FilePath path; |
373 PathService::Get(base::DIR_SOURCE_ROOT, &path); | 373 PathService::Get(base::DIR_SOURCE_ROOT, &path); |
374 path = path.AppendASCII("net"); | 374 path = path.AppendASCII("net"); |
375 path = path.AppendASCII("data"); | 375 path = path.AppendASCII("data"); |
376 path = path.AppendASCII("cache_tests"); | 376 path = path.AppendASCII("cache_tests"); |
377 path = path.AppendASCII("new_crashes"); | 377 path = path.AppendASCII("new_crashes"); |
378 | 378 |
379 return SlaveCode(path, action); | 379 return SlaveCode(path, action); |
380 } | 380 } |
OLD | NEW |