Home
last modified time | relevance | path

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

/system/core/metricsd/
Dmetrics_library_test.cc31 lib_.InitForTest(temp_dir_.path()); in SetUp()
33 lib_.cached_enabled_time_ = 0; in SetUp()
38 ASSERT_EQ(base::WriteFile(lib_.consent_file_, "", 0), 0); in SetMetricsConsent()
40 ASSERT_TRUE(base::DeleteFile(lib_.consent_file_, false)); in SetMetricsConsent()
47 MetricsLibrary lib_; member in MetricsLibraryTest
53 EXPECT_FALSE(lib_.AreMetricsEnabled()); in TEST_F()
58 EXPECT_TRUE(lib_.AreMetricsEnabled()); in TEST_F()
65 lib_.cached_enabled_time_ = 0; in VerifyEnabledCacheHit()
67 lib_.AreMetricsEnabled(); in VerifyEnabledCacheHit()
71 if (lib_.AreMetricsEnabled() == to_value) in VerifyEnabledCacheHit()
[all …]
Dtimer_test.cc424 timer_reporter_.set_metrics_lib(&lib_); in SetUp()
438 MetricsLibraryMock lib_; member in chromeos_metrics::TimerReporterTest
448 EXPECT_CALL(lib_, SendToUMA(kMetricName, kDelta1MSec, kMinSample, kMaxSample, in TEST_F()