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

Unified Diff: base/gmock_unittest.cc

Issue 1302233003: Replace gmock's deprecated SetArgumentPointee with SetArgPointee. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2017 Created 3 years, 7 months 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 | « no previous file | base/nix/xdg_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gmock_unittest.cc
diff --git a/base/gmock_unittest.cc b/base/gmock_unittest.cc
index 855380a97596903f1571739b884b29bc545cc04b..da8dd94ea39cc5b201ea939459f2371795eaadc7 100644
--- a/base/gmock_unittest.cc
+++ b/base/gmock_unittest.cc
@@ -13,7 +13,7 @@
using testing::AnyOf;
using testing::Eq;
using testing::Return;
-using testing::SetArgumentPointee;
+using testing::SetArgPointee;
using testing::WithArg;
using testing::_;
@@ -84,8 +84,7 @@ TEST(GmockTest, AssignArgument) {
// Capture an argument for examination.
MockSampleClass mock;
- EXPECT_CALL(mock, OutputParam(_))
- .WillRepeatedly(SetArgumentPointee<0>(5));
+ EXPECT_CALL(mock, OutputParam(_)).WillRepeatedly(SetArgPointee<0>(5));
int arg = 0;
mock.OutputParam(&arg);
@@ -96,8 +95,7 @@ TEST(GmockTest, SideEffects) {
// Capture an argument for examination.
MockSampleClass mock;
- EXPECT_CALL(mock, OutputParam(_))
- .WillRepeatedly(SetArgumentPointee<0>(5));
+ EXPECT_CALL(mock, OutputParam(_)).WillRepeatedly(SetArgPointee<0>(5));
int arg = 0;
mock.OutputParam(&arg);
« no previous file with comments | « no previous file | base/nix/xdg_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698