summaryrefslogtreecommitdiff
path: root/payload_state_unittest.cc
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-10-23 15:41:39 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-24 15:30:15 -0700
commit672c1f54a499a825cc0bb9bc4f240bf1887550d9 (patch)
tree3af8dfb6a3674a6df97f9b3957ffec786a06a4e2 /payload_state_unittest.cc
parent8ad22ba0765dc6351bfd59da8c43e06476b56c01 (diff)
update_engine: replace testing::SetArgumentPointee with testing::SetArgPointee
testing::SetArgumentPointee defined in gmock has been deprecated and superseded by an equivalent testing::SetArgPointee. BUG=chromium:777011 TEST=Run unit tests. Change-Id: Ifc48897148d721e6f65159a54586e1fb456d75b9 Reviewed-on: https://chromium-review.googlesource.com/735213 Commit-Ready: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'payload_state_unittest.cc')
-rw-r--r--payload_state_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/payload_state_unittest.cc b/payload_state_unittest.cc
index b6717226..1fa45c23 100644
--- a/payload_state_unittest.cc
+++ b/payload_state_unittest.cc
@@ -41,7 +41,7 @@ using testing::AtLeast;
using testing::Mock;
using testing::NiceMock;
using testing::Return;
-using testing::SetArgumentPointee;
+using testing::SetArgPointee;
using testing::_;
namespace chromeos_update_engine {
@@ -607,7 +607,7 @@ TEST(PayloadStateTest, SetResponseResetsInvalidUrlIndex) {
EXPECT_CALL(*prefs2, GetInt64(kPrefsFullPayloadAttemptNumber, _))
.Times(AtLeast(1));
EXPECT_CALL(*prefs2, GetInt64(kPrefsCurrentUrlIndex, _))
- .WillRepeatedly(DoAll(SetArgumentPointee<1>(2), Return(true)));
+ .WillRepeatedly(DoAll(SetArgPointee<1>(2), Return(true)));
EXPECT_CALL(*prefs2, GetInt64(kPrefsCurrentUrlFailureCount, _))
.Times(AtLeast(1));
EXPECT_CALL(*prefs2, GetInt64(kPrefsUrlSwitchCount, _))
@@ -1011,7 +1011,7 @@ TEST(PayloadStateTest, RollbackVersion) {
// Let's verify we can reload it correctly.
EXPECT_CALL(*mock_powerwash_safe_prefs, GetString(
kPrefsRollbackVersion, _)).WillOnce(DoAll(
- SetArgumentPointee<1>(rollback_version), Return(true)));
+ SetArgPointee<1>(rollback_version), Return(true)));
EXPECT_CALL(*mock_powerwash_safe_prefs, SetString(kPrefsRollbackVersion,
rollback_version));
payload_state.LoadRollbackVersion();
@@ -1253,7 +1253,7 @@ TEST(PayloadStateTest, CandidateUrlsComputedCorrectly) {
// Test with device policy not allowing http updates.
EXPECT_CALL(disable_http_policy, GetHttpDownloadsEnabled(_))
- .WillRepeatedly(DoAll(SetArgumentPointee<0>(false), Return(true)));
+ .WillRepeatedly(DoAll(SetArgPointee<0>(false), Return(true)));
// Reset state and set again.
SetupPayloadStateWith2Urls("Hash8433", false, &payload_state, &response);
@@ -1280,7 +1280,7 @@ TEST(PayloadStateTest, CandidateUrlsComputedCorrectly) {
policy::MockDevicePolicy enable_http_policy;
fake_system_state.set_device_policy(&enable_http_policy);
EXPECT_CALL(enable_http_policy, GetHttpDownloadsEnabled(_))
- .WillRepeatedly(DoAll(SetArgumentPointee<0>(true), Return(true)));
+ .WillRepeatedly(DoAll(SetArgPointee<0>(true), Return(true)));
// Now, set the same response using the same hash
// so that we can test that the state is reset not because of the