| Index: components/ukm/ukm_service_unittest.cc
|
| diff --git a/components/ukm/ukm_service_unittest.cc b/components/ukm/ukm_service_unittest.cc
|
| index 2bdf94af09436423626d165f7a58dd6f0d937781..ed520844529f27a78c495af2a95cd2c2b61759da 100644
|
| --- a/components/ukm/ukm_service_unittest.cc
|
| +++ b/components/ukm/ukm_service_unittest.cc
|
| @@ -73,4 +73,19 @@ TEST_F(UkmServiceTest, PersistAndPurge) {
|
| EXPECT_EQ(GetPersistedLogCount(), 0);
|
| }
|
|
|
| +TEST_F(UkmServiceTest, PopulateSystemProfile) {
|
| + UkmService service(&prefs_, &client_);
|
| + Report report;
|
| + service.PopulateSystemProfile(&report);
|
| + EXPECT_TRUE(report.system_profile().has_build_timestamp());
|
| + EXPECT_TRUE(report.system_profile().has_app_version());
|
| + EXPECT_TRUE(report.system_profile().has_channel());
|
| + EXPECT_TRUE(report.system_profile().has_application_locale());
|
| + EXPECT_TRUE(report.system_profile().os().has_name());
|
| + EXPECT_TRUE(report.system_profile().os().has_version());
|
| + EXPECT_TRUE(report.system_profile().hardware().has_cpu_architecture());
|
| + EXPECT_TRUE(report.system_profile().hardware().has_system_ram_mb());
|
| + EXPECT_TRUE(report.system_profile().hardware().has_hardware_class());
|
| +}
|
| +
|
| } // namespace ukm
|
|
|