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

Side by Side Diff: chromecast/crash/linux/crash_testing_utils.h

Issue 1254113004: [Chromecast] Consolidate duplicated crash test functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fixed namespace footer comment Created 5 years, 4 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
« no previous file with comments | « chromecast/crash/BUILD.gn ('k') | chromecast/crash/linux/crash_testing_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMECAST_CRASH_LINUX_CRASH_TESTING_UTILS_H_
6 #define CHROMECAST_CRASH_LINUX_CRASH_TESTING_UTILS_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/scoped_vector.h"
10
11 namespace chromecast {
12
13 class DumpInfo;
14
15 // Creates a DumpInfo object corresponding to the deserialization of
16 // |json_string|. Returned DumpInfo object maybe invalid if |json_string|
17 // doesn't correspond to a valid DumpInfo object.
18 scoped_ptr<DumpInfo> CreateDumpInfo(const std::string& json_string);
19
20 // Populates |dumps| with all the DumpInfo entries serialized in the lockfile at
21 // |lockfile_path|. Returns true on success, false on error.
22 bool FetchDumps(const std::string& lockfile_path,
23 ScopedVector<DumpInfo>* dumps);
24
25 // Creates an empty lockfile at |lockfile_path|. Returns true on success, false
26 // on error.
27 bool CreateLockFile(const std::string& lockfile_path);
28
29 // Appends serialization of |dump| onto the lockfile at |lockfile_path|.
30 // Returns true on success, false on error.
31 bool AppendLockFile(const std::string& lockfile_path, const DumpInfo& dump);
32
33 } // namespace chromecast
34
35 #endif // CHROMECAST_CRASH_LINUX_CRASH_TESTING_UTILS_H_
OLDNEW
« no previous file with comments | « chromecast/crash/BUILD.gn ('k') | chromecast/crash/linux/crash_testing_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698