Avoid gmock warning "Uninteresting mock function call"
Patch by Michael Krebs <mkrebs@chromium.org>, R=me at https://breakpad.appspot.com/397002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1183 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
3a59d0586b
commit
54e75078d6
4 changed files with 22 additions and 0 deletions
|
@ -62,6 +62,7 @@ using google_breakpad::test_assembler::Label;
|
|||
using google_breakpad::test_assembler::Section;
|
||||
using std::vector;
|
||||
using testing::_;
|
||||
using testing::AnyNumber;
|
||||
using testing::Return;
|
||||
using testing::SetArgumentPointee;
|
||||
using testing::Test;
|
||||
|
@ -92,6 +93,10 @@ class StackwalkerARMFixture {
|
|||
// SetModuleSymbols to override this.
|
||||
EXPECT_CALL(supplier, GetCStringSymbolData(_, _, _, _))
|
||||
.WillRepeatedly(Return(MockSymbolSupplier::NOT_FOUND));
|
||||
|
||||
// Avoid GMOCK WARNING "Uninteresting mock function call - returning
|
||||
// directly" for FreeSymbolData().
|
||||
EXPECT_CALL(supplier, FreeSymbolData(_)).Times(AnyNumber());
|
||||
}
|
||||
|
||||
// Set the Breakpad symbol information that supplier should return for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue