Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: components/ukm/ukm_service_unittest.cc

Issue 2657083003: Populate a basic SystemProfileProto in UKM. (Closed)
Patch Set: small fixes Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« components/ukm/ukm_service.cc ('K') | « components/ukm/ukm_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« components/ukm/ukm_service.cc ('K') | « components/ukm/ukm_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698