summaryrefslogtreecommitdiff
path: root/update_manager/generic_variables_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'update_manager/generic_variables_unittest.cc')
-rw-r--r--update_manager/generic_variables_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/update_manager/generic_variables_unittest.cc b/update_manager/generic_variables_unittest.cc
index bbf39966..634acce5 100644
--- a/update_manager/generic_variables_unittest.cc
+++ b/update_manager/generic_variables_unittest.cc
@@ -26,8 +26,8 @@ TEST_F(UmPollCopyVariableTest, SimpleTest) {
// Generate and validate a copy.
scoped_ptr<const int> copy_1(var.GetValue(
- UmTestUtils::DefaultTimeout(), NULL));
- UMTEST_ASSERT_NOT_NULL(copy_1.get());
+ UmTestUtils::DefaultTimeout(), nullptr));
+ ASSERT_NE(nullptr, copy_1.get());
EXPECT_EQ(5, *copy_1);
// Assign a different value to the source variable.
@@ -76,8 +76,8 @@ TEST_F(UmPollCopyVariableTest, UseCopyConstructorTest) {
PollCopyVariable<CopyConstructorTestClass> var("var", source);
scoped_ptr<const CopyConstructorTestClass> copy(
- var.GetValue(UmTestUtils::DefaultTimeout(), NULL));
- UMTEST_ASSERT_NOT_NULL(copy.get());
+ var.GetValue(UmTestUtils::DefaultTimeout(), nullptr));
+ ASSERT_NE(nullptr, copy.get());
EXPECT_TRUE(copy->copied_);
}
@@ -117,7 +117,7 @@ TEST_F(UmCallCopyVariableTest, SimpleTest) {
scoped_ptr<const CopyConstructorTestClass> copy(
var.GetValue(UmTestUtils::DefaultTimeout(), nullptr));
EXPECT_EQ(6, test_obj.val_); // Check that the function was called.
- UMTEST_ASSERT_NOT_NULL(copy.get());
+ ASSERT_NE(nullptr, copy.get());
EXPECT_TRUE(copy->copied_);
EXPECT_EQ(12, copy->val_); // Check that copying occurred once.
}