/external/chromium_org/chrome/browser/metrics/ |
extensions_metrics_provider_unittest.cc | 11 #include "components/metrics/proto/system_profile.pb.h" 94 metrics::SystemProfileProto system_profile; local 101 extension_metrics.ProvideSystemProfileMetrics(&system_profile); 102 ASSERT_EQ(2, system_profile.occupied_extension_bucket_size()); 103 EXPECT_EQ(10, system_profile.occupied_extension_bucket(0)); 104 EXPECT_EQ(1007, system_profile.occupied_extension_bucket(1));
|
plugin_metrics_provider_unittest.cc | 15 #include "components/metrics/proto/system_profile.pb.h" 64 metrics::SystemProfileProto system_profile; local 65 provider.ProvideSystemProfileMetrics(&system_profile); 67 ASSERT_EQ(2, system_profile.plugin_size()); 68 EXPECT_EQ("p1", system_profile.plugin(0).name()); 69 EXPECT_EQ("p1.plugin", system_profile.plugin(0).filename()); 70 EXPECT_EQ("1.5", system_profile.plugin(0).version()); 71 EXPECT_TRUE(system_profile.plugin(0).is_pepper()); 72 EXPECT_EQ("p2", system_profile.plugin(1).name()); 73 EXPECT_EQ("p2.plugin", system_profile.plugin(1).filename()) [all...] |
chromeos_metrics_provider_unittest.cc | 23 #include "components/metrics/proto/system_profile.pb.h" 127 metrics::SystemProfileProto system_profile; local 128 provider.ProvideSystemProfileMetrics(&system_profile); 129 EXPECT_EQ(2u, system_profile.multi_profile_user_count()); 149 metrics::SystemProfileProto system_profile; local 150 provider.ProvideSystemProfileMetrics(&system_profile); 151 EXPECT_EQ(1u, system_profile.multi_profile_user_count()); 154 provider.ProvideSystemProfileMetrics(&system_profile); 155 EXPECT_EQ(0u, system_profile.multi_profile_user_count()); 161 metrics::SystemProfileProto system_profile; local 178 metrics::SystemProfileProto system_profile; local 208 metrics::SystemProfileProto system_profile; local [all...] |
/external/chromium_org/components/metrics/ |
metrics_log_unittest.cc | 62 const metrics::SystemProfileProto& system_profile() const { function in class:metrics::__anon11010::TestMetricsLog 63 return uma_proto().system_profile(); 103 void CheckSystemProfile(const metrics::SystemProfileProto& system_profile) { 104 EXPECT_EQ(kInstallDateExpected, system_profile.install_date()); 105 EXPECT_EQ(kEnabledDateExpected, system_profile.uma_enabled_date()); 108 static_cast<size_t>(system_profile.field_trial_size())); 111 system_profile.field_trial(i); 118 system_profile.field_trial(i + arraysize(kFieldTrialIds)); 124 system_profile.brand_code()); 127 system_profile.hardware() [all...] |
metrics_log.cc | 30 #include "components/metrics/proto/system_profile.pb.h" 77 SystemProfileProto* system_profile) { 81 system_profile->add_field_trial(); 113 SystemProfileProto* system_profile = uma_proto_.mutable_system_profile(); local 114 system_profile->set_build_timestamp(GetBuildTime()); 115 system_profile->set_app_version(client_->GetVersionString()); 116 system_profile->set_channel(client_->GetChannel()); 240 SystemProfileProto* system_profile = uma_proto()->mutable_system_profile(); local 242 metrics_providers[i]->ProvideStabilityMetrics(system_profile); 267 system_profile->mutable_stability() 336 SystemProfileProto* system_profile = uma_proto()->mutable_system_profile(); local 423 SystemProfileProto* system_profile = uma_proto()->mutable_system_profile(); local [all...] |