apmanager: 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: I4a4c71e5173bb5a988ae0732923b19a2f4c2afff
Reviewed-on: https://chromium-review.googlesource.com/734331
Commit-Ready: Ben Chan <[email protected]>
Tested-by: Ben Chan <[email protected]>
Reviewed-by: Mike Frysinger <[email protected]>
diff --git a/config_unittest.cc b/config_unittest.cc
index 4880e69..4e1e2c0 100644
--- a/config_unittest.cc
+++ b/config_unittest.cc
@@ -40,7 +40,7 @@
using ::testing::Mock;
using ::testing::Return;
using ::testing::ReturnNew;
-using ::testing::SetArgumentPointee;
+using ::testing::SetArgPointee;
namespace apmanager {
namespace {
@@ -381,7 +381,7 @@
Error error;
std::string ht_capab_5ghz(k5GHzHTCapab);
EXPECT_CALL(*device_.get(), GetHTCapability(k5GHzChannel, _))
- .WillOnce(DoAll(SetArgumentPointee<1>(ht_capab_5ghz), Return(true)));
+ .WillOnce(DoAll(SetArgPointee<1>(ht_capab_5ghz), Return(true)));
EXPECT_TRUE(config_->GenerateConfigFile(&error, &ghz5_config_content));
EXPECT_NE(std::string::npos, ghz5_config_content.find(
kExpected80211n5GHzConfigContent))
@@ -397,7 +397,7 @@
error.Reset();
std::string ht_capab_24ghz(k24GHzHTCapab);
EXPECT_CALL(*device_.get(), GetHTCapability(k24GHzChannel, _))
- .WillOnce(DoAll(SetArgumentPointee<1>(ht_capab_24ghz), Return(true)));
+ .WillOnce(DoAll(SetArgPointee<1>(ht_capab_24ghz), Return(true)));
EXPECT_TRUE(config_->GenerateConfigFile(&error, &ghz24_config_content));
EXPECT_NE(std::string::npos, ghz24_config_content.find(
kExpected80211n24GHzConfigContent))