summaryrefslogtreecommitdiff
path: root/init/rlimit_parser_test.cpp
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2019-05-31 03:43:34 +0900
committerJiyong Park <jiyong@google.com>2019-06-06 08:58:55 +0900
commit8fd64c8af11e29a270bff6688f52589afb2b0466 (patch)
tree51cb7ec12139129ec9795603d5e962f2e64a2e90 /init/rlimit_parser_test.cpp
parentf74ff74475494e25ab27a507ff55bfefb78ff905 (diff)
Move result.h from init to libbase
The Result, Error, ErrnoError are quite generic. Moving them from init to libbase so that they can be used from other places. Bug: 132145659 Test: libbase_test Change-Id: Id774a587f74380fadd7a0fc88c0aa892c3d9a489
Diffstat (limited to 'init/rlimit_parser_test.cpp')
-rw-r--r--init/rlimit_parser_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/rlimit_parser_test.cpp b/init/rlimit_parser_test.cpp
index e690bf6d6..6a16d3b57 100644
--- a/init/rlimit_parser_test.cpp
+++ b/init/rlimit_parser_test.cpp
@@ -43,8 +43,8 @@ void TestRlimitFailure(std::vector<std::string> input, const std::string& expect
auto result = ParseRlimit(input);
ASSERT_FALSE(result) << "input: " << input[1];
- EXPECT_EQ(expected_result, result.error().as_string);
- EXPECT_EQ(0, result.error().as_errno);
+ EXPECT_EQ(expected_result, result.error().message());
+ EXPECT_EQ(0, result.error().code());
}
TEST(rlimit, RlimitSuccess) {