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

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

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 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
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>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 return ALL_GOOD; 78 return ALL_GOOD;
79 } 79 }
80 80
81 // ----------------------------------------------------------------------- 81 // -----------------------------------------------------------------------
82 82
83 namespace disk_cache { 83 namespace disk_cache {
84 NET_EXPORT_PRIVATE extern RankCrashes g_rankings_crash; 84 NET_EXPORT_PRIVATE extern RankCrashes g_rankings_crash;
85 } 85 }
86 86
87 const char* kCrashEntryName = "the first key"; 87 const char kCrashEntryName[] = "the first key";
88 88
89 // Creates the destinaton folder for this run, and returns it on full_path. 89 // Creates the destinaton folder for this run, and returns it on full_path.
90 bool CreateTargetFolder(const base::FilePath& path, RankCrashes action, 90 bool CreateTargetFolder(const base::FilePath& path, RankCrashes action,
91 base::FilePath* full_path) { 91 base::FilePath* full_path) {
92 const char* folders[] = { 92 const char* const folders[] = {
93 "", 93 "",
94 "insert_empty1", 94 "insert_empty1",
95 "insert_empty2", 95 "insert_empty2",
96 "insert_empty3", 96 "insert_empty3",
97 "insert_one1", 97 "insert_one1",
98 "insert_one2", 98 "insert_one2",
99 "insert_one3", 99 "insert_one3",
100 "insert_load1", 100 "insert_load1",
101 "insert_load2", 101 "insert_load2",
102 "remove_one1", 102 "remove_one1",
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 372
373 base::FilePath path; 373 base::FilePath path;
374 PathService::Get(base::DIR_SOURCE_ROOT, &path); 374 PathService::Get(base::DIR_SOURCE_ROOT, &path);
375 path = path.AppendASCII("net"); 375 path = path.AppendASCII("net");
376 path = path.AppendASCII("data"); 376 path = path.AppendASCII("data");
377 path = path.AppendASCII("cache_tests"); 377 path = path.AppendASCII("cache_tests");
378 path = path.AppendASCII("new_crashes"); 378 path = path.AppendASCII("new_crashes");
379 379
380 return SlaveCode(path, action); 380 return SlaveCode(path, action);
381 } 381 }
OLDNEW
« no previous file with comments | « net/test/spawned_test_server/local_test_server_win.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698