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

Unified Diff: src/processor/stackwalker_unittest_utils.h

Issue 2060663002: Server-side workaround to handle overlapping modules. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Fix whitespace. Created 4 years, 6 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 | « src/processor/range_map-inl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/processor/stackwalker_unittest_utils.h
diff --git a/src/processor/stackwalker_unittest_utils.h b/src/processor/stackwalker_unittest_utils.h
index 73ceb199fe8a0472ffa108a364d60a141d8a0a61..ee22a8fe1c1d97dbcd9925e8fa022ee4afc9f71a 100644
--- a/src/processor/stackwalker_unittest_utils.h
+++ b/src/processor/stackwalker_unittest_utils.h
@@ -48,6 +48,7 @@
#include "google_breakpad/processor/memory_region.h"
#include "google_breakpad/processor/symbol_supplier.h"
#include "google_breakpad/processor/system_info.h"
+#include "processor/linked_ptr.h"
class MockMemoryRegion: public google_breakpad::MemoryRegion {
public:
@@ -114,9 +115,11 @@ class MockCodeModule: public google_breakpad::CodeModule {
string debug_file() const { return code_file_; }
string debug_identifier() const { return code_file_; }
string version() const { return version_; }
- const google_breakpad::CodeModule *Copy() const {
+ google_breakpad::CodeModule *Copy() const {
abort(); // Tests won't use this.
}
+ virtual uint64_t shrink_down_delta() const { return 0; }
+ virtual void SetShrinkDownDelta(uint64_t shrink_down_delta) {}
private:
uint64_t base_address_;
@@ -126,11 +129,11 @@ class MockCodeModule: public google_breakpad::CodeModule {
};
class MockCodeModules: public google_breakpad::CodeModules {
- public:
+ public:
typedef google_breakpad::CodeModule CodeModule;
typedef google_breakpad::CodeModules CodeModules;
- void Add(const MockCodeModule *module) {
+ void Add(const MockCodeModule *module) {
modules_.push_back(module);
}
@@ -157,9 +160,19 @@ class MockCodeModules: public google_breakpad::CodeModules {
return modules_.at(index);
}
- const CodeModules *Copy() const { abort(); } // Tests won't use this.
+ CodeModules *Copy() const { abort(); } // Tests won't use this
+
+ virtual std::vector<google_breakpad::linked_ptr<const CodeModule> >
+ GetShrunkRangeModules() const {
+ return std::vector<google_breakpad::linked_ptr<const CodeModule> >();
+ }
+
+ // Returns true, if module address range shrink is enabled.
+ bool IsModuleShrinkEnabled() const {
+ return false;
+ }
- private:
+ private:
typedef std::vector<const MockCodeModule *> ModuleVector;
ModuleVector modules_;
};
« no previous file with comments | « src/processor/range_map-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698