Lines Matching refs:Int64FromString
29 using bluetooth::common::Int64FromString;
149 ASSERT_THAT(Int64FromString("42"), Optional(Eq(int64_t(42)))); in TEST()
150 ASSERT_THAT(Int64FromString("-42"), Optional(Eq(int64_t(-42)))); in TEST()
151 ASSERT_THAT(Int64FromString("0"), Optional(Eq(int64_t(0)))); in TEST()
152 ASSERT_FALSE(Int64FromString("")); in TEST()
154 ASSERT_FALSE(Int64FromString("0x42ab")); in TEST()
155 ASSERT_FALSE(Int64FromString("-0x42")); in TEST()
157 ASSERT_FALSE(Int64FromString("42.0")); in TEST()
158 ASSERT_FALSE(Int64FromString("-42.0")); in TEST()
159 ASSERT_FALSE(Int64FromString("42abc")); in TEST()
160 ASSERT_FALSE(Int64FromString("")); in TEST()
162 ASSERT_THAT(Int64FromString("2147483648"), Optional(Eq(int64_t(2147483648)))); in TEST()
165 ASSERT_THAT(Int64FromString("-2147483649"), Optional(Eq(int64_t(-2147483649)))); in TEST()
168 ASSERT_THAT(Int64FromString("9223372036854775807"), Optional(Eq(int64_t(9223372036854775807)))); in TEST()
171 ASSERT_FALSE(Int64FromString("9223372036854775808")); in TEST()
173 …ASSERT_THAT(Int64FromString("-9223372036854775808"), Optional(Eq(int64_t(-9223372036854775807LL - … in TEST()
176 ASSERT_FALSE(Int64FromString("-9223372036854775809")); in TEST()