OLD | NEW |
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 75 FRIEND_TEST_ALL_PREFIXES( |
76 PostmortemReportCollectorCollectionFromGlobalTrackerTest, | 76 PostmortemReportCollectorCollectionFromGlobalTrackerTest, |
77 LogCollection); | 77 LogCollection); |
| 78 FRIEND_TEST_ALL_PREFIXES( |
| 79 PostmortemReportCollectorCollectionFromGlobalTrackerTest, |
| 80 GlobalUserDataCollection); |
78 | 81 |
79 // Virtual for unittesting. | 82 // Virtual for unittesting. |
80 virtual std::vector<base::FilePath> GetDebugStateFilePaths( | 83 virtual std::vector<base::FilePath> GetDebugStateFilePaths( |
81 const base::FilePath& debug_info_dir, | 84 const base::FilePath& debug_info_dir, |
82 const base::FilePath::StringType& debug_file_pattern, | 85 const base::FilePath::StringType& debug_file_pattern, |
83 const std::set<base::FilePath>& excluded_debug_files); | 86 const std::set<base::FilePath>& excluded_debug_files); |
84 | 87 |
85 CollectionStatus CollectAndSubmit( | 88 CollectionStatus CollectAndSubmit( |
86 const crashpad::UUID& client_id, | 89 const crashpad::UUID& client_id, |
87 const base::FilePath& file, | 90 const base::FilePath& file, |
(...skipping 15 matching lines...) Expand all Loading... |
103 std::string product_name_; | 106 std::string product_name_; |
104 std::string version_number_; | 107 std::string version_number_; |
105 std::string channel_name_; | 108 std::string channel_name_; |
106 | 109 |
107 DISALLOW_COPY_AND_ASSIGN(PostmortemReportCollector); | 110 DISALLOW_COPY_AND_ASSIGN(PostmortemReportCollector); |
108 }; | 111 }; |
109 | 112 |
110 } // namespace browser_watcher | 113 } // namespace browser_watcher |
111 | 114 |
112 #endif // COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ | 115 #endif // COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ |
OLD | NEW |