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

Unified Diff: chrome/browser/metrics/metrics_log_unittest.cc

Issue 49753002: RAPPOR implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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
Index: chrome/browser/metrics/metrics_log_unittest.cc
diff --git a/chrome/browser/metrics/metrics_log_unittest.cc b/chrome/browser/metrics/metrics_log_unittest.cc
index 0f96916325d008a5be11f6cba799028d327049b6..821cc294744add84c30612c7a9f5362456592a46 100644
--- a/chrome/browser/metrics/metrics_log_unittest.cc
+++ b/chrome/browser/metrics/metrics_log_unittest.cc
@@ -69,7 +69,7 @@ class TestMetricsLog : public MetricsLog {
: MetricsLog(client_id, session_id),
brand_for_testing_(kBrandForTesting) {
chrome::RegisterLocalState(prefs_.registry());
-
+ // prefs_.SetString(prefs::kHomePage, "http://www.google.com/foo");
prefs_.SetInt64(prefs::kInstallDate, kInstallDate);
prefs_.SetString(prefs::kMetricsClientIDTimestamp,
base::Int64ToString(kEnabledDate));
@@ -170,6 +170,9 @@ class MetricsLogTest : public testing::Test {
EXPECT_TRUE(hardware.cpu().has_vendor_name());
EXPECT_TRUE(hardware.cpu().has_signature());
+ EXPECT_TRUE(system_profile.has_bloom_filter_bits());
+ EXPECT_EQ((uint64_t)128, system_profile.bloom_filter_bits().length());
+
// TODO(isherman): Verify other data written into the protobuf as a result
// of this call.
}

Powered by Google App Engine
This is Rietveld 408576698