Searched refs:CoerceToUint32 (Results 1 – 4 of 4) sorted by relevance
28 TEST(JsonTraceUtilsTest, CoerceToUint32) { in TEST() argument29 ASSERT_EQ(CoerceToUint32(Json::Value(42)).value_or(0), 42u); in TEST()30 ASSERT_EQ(CoerceToUint32(Json::Value("42")).value_or(0), 42u); in TEST()
46 base::Optional<uint32_t> CoerceToUint32(const Json::Value& value);
103 opt_pid = json::CoerceToUint32(value["pid"]); in ParseTracePacket()105 opt_tid = json::CoerceToUint32(value["tid"]); in ParseTracePacket()
113 base::Optional<uint32_t> CoerceToUint32(const Json::Value& value) { in CoerceToUint32() function