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

Side by Side Diff: net/tools/crash_cache/crash_cache.cc

Issue 121643003: Reorganize net/disk_cache into backend specific directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: #define fixes Created 6 years, 10 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) 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/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/path_service.h" 17 #include "base/path_service.h"
18 #include "base/process/kill.h" 18 #include "base/process/kill.h"
19 #include "base/process/launch.h" 19 #include "base/process/launch.h"
20 #include "base/process/process_handle.h" 20 #include "base/process/process_handle.h"
21 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
22 #include "base/strings/string_util.h" 22 #include "base/strings/string_util.h"
23 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
24 #include "base/threading/thread.h" 24 #include "base/threading/thread.h"
25 #include "net/base/net_errors.h" 25 #include "net/base/net_errors.h"
26 #include "net/base/net_export.h" 26 #include "net/base/net_export.h"
27 #include "net/base/test_completion_callback.h" 27 #include "net/base/test_completion_callback.h"
28 #include "net/disk_cache/backend_impl.h"
29 #include "net/disk_cache/disk_cache.h" 28 #include "net/disk_cache/disk_cache.h"
30 #include "net/disk_cache/disk_cache_test_util.h" 29 #include "net/disk_cache/disk_cache_test_util.h"
31 #include "net/disk_cache/rankings.h" 30 #include "net/disk_cache/v2/backend_impl.h"
31 #include "net/disk_cache/v2/rankings.h"
32 32
33 using base::Time; 33 using base::Time;
34 34
35 enum Errors { 35 enum Errors {
36 GENERIC = -1, 36 GENERIC = -1,
37 ALL_GOOD = 0, 37 ALL_GOOD = 0,
38 INVALID_ARGUMENT = 1, 38 INVALID_ARGUMENT = 1,
39 CRASH_OVERWRITE, 39 CRASH_OVERWRITE,
40 NOT_REACHED 40 NOT_REACHED
41 }; 41 };
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 373
374 base::FilePath path; 374 base::FilePath path;
375 PathService::Get(base::DIR_SOURCE_ROOT, &path); 375 PathService::Get(base::DIR_SOURCE_ROOT, &path);
376 path = path.AppendASCII("net"); 376 path = path.AppendASCII("net");
377 path = path.AppendASCII("data"); 377 path = path.AppendASCII("data");
378 path = path.AppendASCII("cache_tests"); 378 path = path.AppendASCII("cache_tests");
379 path = path.AppendASCII("new_crashes"); 379 path = path.AppendASCII("new_crashes");
380 380
381 return SlaveCode(path, action); 381 return SlaveCode(path, action);
382 } 382 }
OLDNEW
« net/net.gyp ('K') | « net/net.gyp ('k') | net/tools/dump_cache/cache_dumper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698