Home
last modified time | relevance | path

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

/external/perfetto/src/trace_processor/importers/json/
Djson_utils_unittest.cc46 ASSERT_EQ(CoerceToTs(TimeUnit::kUs, Json::Value(42)).value_or(-1), 42000); in TEST()
47 ASSERT_EQ(CoerceToTs(TimeUnit::kUs, Json::Value("42")).value_or(-1), 42000); in TEST()
48 ASSERT_EQ(CoerceToTs(TimeUnit::kUs, Json::Value(42.1)).value_or(-1), 42100); in TEST()
49 ASSERT_EQ(CoerceToTs(TimeUnit::kUs, Json::Value("42.1")).value_or(-1), 42100); in TEST()
50 ASSERT_EQ(CoerceToTs(TimeUnit::kUs, Json::Value(".42")).value_or(-1), 420); in TEST()
51 ASSERT_EQ(CoerceToTs(TimeUnit::kUs, Json::Value("42.")).value_or(-1), 42000); in TEST()
52 ASSERT_EQ(CoerceToTs(TimeUnit::kUs, Json::Value("42.0")).value_or(-1), 42000); in TEST()
53 ASSERT_EQ(CoerceToTs(TimeUnit::kUs, Json::Value("0.2")).value_or(-1), 200); in TEST()
54 ASSERT_EQ(CoerceToTs(TimeUnit::kUs, Json::Value("0.2e-1")).value_or(-1), 20); in TEST()
57 ASSERT_EQ(CoerceToTs(TimeUnit::kUs, Json::Value(".")).value_or(-1), 0); in TEST()
[all …]
Djson_utils.h43 enum class TimeUnit { kNs = 1, kUs = 1000, kMs = 1000000 }; enumerator
Djson_tracker.h52 json::TimeUnit time_unit_ = json::TimeUnit::kUs;