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

Unified Diff: omaha_response_handler_action_unittest.cc

Issue 5141004: AU: Use NiceMock<PrefsMock to suppress uninteresting call warnings. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git@master
Patch Set: Created 10 years, 1 month 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 | « omaha_request_action_unittest.cc ('k') | update_attempter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_response_handler_action_unittest.cc
diff --git a/omaha_response_handler_action_unittest.cc b/omaha_response_handler_action_unittest.cc
index 0db21beeba1448d3831ff55f1c3d9070d8f3cfdd..7f1ee15989b07c9487e0d87231deee017747636a 100644
--- a/omaha_response_handler_action_unittest.cc
+++ b/omaha_response_handler_action_unittest.cc
@@ -12,6 +12,7 @@
#include "update_engine/utils.h"
using std::string;
+using testing::NiceMock;
using testing::Return;
namespace chromeos_update_engine {
@@ -64,7 +65,7 @@ bool OmahaResponseHandlerActionTest::DoTest(const OmahaResponse& in,
ObjectFeederAction<OmahaResponse> feeder_action;
feeder_action.set_obj(in);
- PrefsMock prefs;
+ NiceMock<PrefsMock> prefs;
if (in.update_exists) {
EXPECT_CALL(prefs, SetString(kPrefsUpdateCheckResponseHash, in.hash))
.WillOnce(Return(true));
« no previous file with comments | « omaha_request_action_unittest.cc ('k') | update_attempter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698