Home
last modified time | relevance | path

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

/external/openscreen/util/json/
Djson_helpers_unittest.cc129 TEST(ParsingHelpersTest, TryParseMilliseconds) { in TEST() argument
137 EXPECT_TRUE(TryParseMilliseconds(kValid, &out)); in TEST()
139 EXPECT_TRUE(TryParseMilliseconds(kValidFloat, &out)); in TEST()
141 EXPECT_TRUE(TryParseMilliseconds(kZeroNumber, &out)); in TEST()
143 EXPECT_FALSE(TryParseMilliseconds(kNone, &out)); in TEST()
144 EXPECT_FALSE(TryParseMilliseconds(kNegativeNumber, &out)); in TEST()
145 EXPECT_FALSE(TryParseMilliseconds(kNotNumber, &out)); in TEST()
Djson_helpers.h113 inline bool TryParseMilliseconds(const Json::Value& value, milliseconds* out) { in TryParseMilliseconds() function
/external/openscreen/cast/streaming/
Danswer_messages.cc200 if (json::TryParseMilliseconds(root[kMaxDelay], &max_delay)) { in TryParse()
239 if (json::TryParseMilliseconds(root[kMaxDelay], &max_delay)) { in TryParse()