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

Side by Side Diff: components/browser_watcher/postmortem_report_collector.h

Issue 2554423002: Collect log messages from stability files (Closed)
Patch Set: Revise comments Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Following an unclean shutdown, a stability report can be collected and 5 // Following an unclean shutdown, a stability report can be collected and
6 // submitted for upload to a reporter. 6 // submitted for upload to a reporter.
7 7
8 #ifndef COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ 8 #ifndef COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_
9 #define COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ 9 #define COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const std::string& version_number() const { return version_number_; } 65 const std::string& version_number() const { return version_number_; }
66 const std::string& channel_name() const { return channel_name_; } 66 const std::string& channel_name() const { return channel_name_; }
67 67
68 private: 68 private:
69 FRIEND_TEST_ALL_PREFIXES(PostmortemReportCollectorTest, 69 FRIEND_TEST_ALL_PREFIXES(PostmortemReportCollectorTest,
70 GetDebugStateFilePaths); 70 GetDebugStateFilePaths);
71 FRIEND_TEST_ALL_PREFIXES(PostmortemReportCollectorTest, CollectEmptyFile); 71 FRIEND_TEST_ALL_PREFIXES(PostmortemReportCollectorTest, CollectEmptyFile);
72 FRIEND_TEST_ALL_PREFIXES(PostmortemReportCollectorTest, CollectRandomFile); 72 FRIEND_TEST_ALL_PREFIXES(PostmortemReportCollectorTest, CollectRandomFile);
73 FRIEND_TEST_ALL_PREFIXES(PostmortemReportCollectorCollectionTest, 73 FRIEND_TEST_ALL_PREFIXES(PostmortemReportCollectorCollectionTest,
74 CollectSuccess); 74 CollectSuccess);
75 FRIEND_TEST_ALL_PREFIXES(
76 PostmortemReportCollectorCollectionFromGlobalTrackerTest,
77 LogCollection);
75 78
76 // Virtual for unittesting. 79 // Virtual for unittesting.
77 virtual std::vector<base::FilePath> GetDebugStateFilePaths( 80 virtual std::vector<base::FilePath> GetDebugStateFilePaths(
78 const base::FilePath& debug_info_dir, 81 const base::FilePath& debug_info_dir,
79 const base::FilePath::StringType& debug_file_pattern, 82 const base::FilePath::StringType& debug_file_pattern,
80 const std::set<base::FilePath>& excluded_debug_files); 83 const std::set<base::FilePath>& excluded_debug_files);
81 84
82 CollectionStatus CollectAndSubmit( 85 CollectionStatus CollectAndSubmit(
83 const crashpad::UUID& client_id, 86 const crashpad::UUID& client_id,
84 const base::FilePath& file, 87 const base::FilePath& file,
(...skipping 15 matching lines...) Expand all
100 std::string product_name_; 103 std::string product_name_;
101 std::string version_number_; 104 std::string version_number_;
102 std::string channel_name_; 105 std::string channel_name_;
103 106
104 DISALLOW_COPY_AND_ASSIGN(PostmortemReportCollector); 107 DISALLOW_COPY_AND_ASSIGN(PostmortemReportCollector);
105 }; 108 };
106 109
107 } // namespace browser_watcher 110 } // namespace browser_watcher
108 111
109 #endif // COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ 112 #endif // COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698