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_; |
}; |