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

Unified Diff: snapshot/test/test_module_snapshot.h

Issue 1418613013: Capture UUID age field on Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « snapshot/module_snapshot.h ('k') | snapshot/test/test_module_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/test/test_module_snapshot.h
diff --git a/snapshot/test/test_module_snapshot.h b/snapshot/test/test_module_snapshot.h
index 7aa5df3fd55d0b38f4d1fe192af021198b98e288..3a59645e48a697489b6793a063c3ceea7a7ce60c 100644
--- a/snapshot/test/test_module_snapshot.h
+++ b/snapshot/test/test_module_snapshot.h
@@ -60,7 +60,10 @@ class TestModuleSnapshot final : public ModuleSnapshot {
source_version_[3] = source_version_3;
}
void SetModuleType(ModuleType module_type) { module_type_ = module_type; }
- void SetUUID(const crashpad::UUID& uuid) { uuid_ = uuid; }
+ void SetUUIDAndAge(const crashpad::UUID& uuid, uint32_t age) {
+ uuid_ = uuid;
+ age_ = age;
+ }
void SetAnnotationsVector(
const std::vector<std::string>& annotations_vector) {
annotations_vector_ = annotations_vector;
@@ -85,7 +88,7 @@ class TestModuleSnapshot final : public ModuleSnapshot {
uint16_t* version_2,
uint16_t* version_3) const override;
ModuleType GetModuleType() const override;
- void UUID(crashpad::UUID* uuid) const override;
+ void UUIDAndAge(crashpad::UUID* uuid, uint32_t* age) const override;
std::vector<std::string> AnnotationsVector() const override;
std::map<std::string, std::string> AnnotationsSimpleMap() const override;
@@ -97,6 +100,7 @@ class TestModuleSnapshot final : public ModuleSnapshot {
uint16_t file_version_[4];
uint16_t source_version_[4];
ModuleType module_type_;
+ uint32_t age_;
crashpad::UUID uuid_;
std::vector<std::string> annotations_vector_;
std::map<std::string, std::string> annotations_simple_map_;
« no previous file with comments | « snapshot/module_snapshot.h ('k') | snapshot/test/test_module_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698