diff options
author | Bernie Innocenti <codewiz@google.com> | 2020-02-06 03:49:33 +0900 |
---|---|---|
committer | Bernie Innocenti <codewiz@google.com> | 2020-02-06 17:04:27 +0000 |
commit | cecebbbaccd36dc2e9f6e80c8e91e57d979963a5 (patch) | |
tree | e866ec8f6bd1eafcc47a7f26d5b957ad787dcfdc /init/rlimit_parser_test.cpp | |
parent | a6bc86aae72e406c1e90ff25eb3f95b654d9a723 (diff) |
Convert system/core to Result::ok()
No functionality changes, this is a mechanical cleanup.
Test: m
Test: cd system/core && atest
Change-Id: Ifdaa3ce1947ed578f656d5a446978726eb416c36
Diffstat (limited to 'init/rlimit_parser_test.cpp')
-rw-r--r-- | init/rlimit_parser_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/rlimit_parser_test.cpp b/init/rlimit_parser_test.cpp index 6a16d3b57..3c3f848b5 100644 --- a/init/rlimit_parser_test.cpp +++ b/init/rlimit_parser_test.cpp @@ -29,7 +29,7 @@ void TestRlimitSuccess(std::vector<std::string> input, ASSERT_EQ(4U, input.size()); auto result = ParseRlimit(input); - ASSERT_TRUE(result) << "input: " << input[1]; + ASSERT_TRUE(result.ok()) << "input: " << input[1]; const auto& [resource, rlimit] = *result; const auto& [expected_resource, expected_rlimit] = expected_result; EXPECT_EQ(expected_resource, resource); @@ -42,7 +42,7 @@ void TestRlimitFailure(std::vector<std::string> input, const std::string& expect ASSERT_EQ(4U, input.size()); auto result = ParseRlimit(input); - ASSERT_FALSE(result) << "input: " << input[1]; + ASSERT_FALSE(result.ok()) << "input: " << input[1]; EXPECT_EQ(expected_result, result.error().message()); EXPECT_EQ(0, result.error().code()); } |