Home
last modified time | relevance | path

Searched refs:CodeWithReason (Results 1 – 1 of 1) sorted by relevance

/external/libweave/src/privet/
Dprivet_handler_unittest.cc53 struct CodeWithReason { struct
54 CodeWithReason(int code_in, const std::string& reason_in) in CodeWithReason() function
60 std::ostream& operator<<(std::ostream& stream, const CodeWithReason& error) { in operator <<()
64 bool IsEqualError(const CodeWithReason& expected, in IsEqualError()
181 EXPECT_PRED2(IsEqualError, CodeWithReason(400, "invalidFormat"), in TEST_F()
187 EXPECT_PRED2(IsEqualError, CodeWithReason(401, "missingAuthorization"), in TEST_F()
193 EXPECT_PRED2(IsEqualError, CodeWithReason(401, "invalidAuthorization"), in TEST_F()
203 EXPECT_PRED2(IsEqualError, CodeWithReason(403, "authorizationExpired"), in TEST_F()
208 EXPECT_PRED2(IsEqualError, CodeWithReason(403, "invalidAuthorizationScope"), in TEST_F()
321 EXPECT_PRED2(IsEqualError, CodeWithReason(400, "invalidParams"), in TEST_F()
[all …]