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

Side by Side Diff: trunk/src/chrome/browser/prefs/pref_metrics_service_unittest.cc

Issue 23788010: Revert 221966 "Revert 221944 "Add UMA to report Preferences File..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/metrics/histogram.h" 6 #include "base/metrics/histogram.h"
7 #include "base/metrics/statistics_recorder.h" 7 #include "base/metrics/statistics_recorder.h"
8 #include "base/prefs/testing_pref_service.h" 8 #include "base/prefs/testing_pref_service.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/prefs/pref_metrics_service.h" 10 #include "chrome/browser/prefs/pref_metrics_service.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 EXPECT_EQ("C503FB7C65EEFD5C07185F616A0AA67923C069909933F362022B1F187E73E9A2", 265 EXPECT_EQ("C503FB7C65EEFD5C07185F616A0AA67923C069909933F362022B1F187E73E9A2",
266 GetHashedPrefValue(test.get(), "pref.path1", &dict)); 266 GetHashedPrefValue(test.get(), "pref.path1", &dict));
267 267
268 ListValue list; 268 ListValue list;
269 list.Set(0, new base::FundamentalValue(true)); 269 list.Set(0, new base::FundamentalValue(true));
270 list.Set(1, new base::FundamentalValue(100)); 270 list.Set(1, new base::FundamentalValue(100));
271 list.Set(2, new base::FundamentalValue(1.0)); 271 list.Set(2, new base::FundamentalValue(1.0));
272 EXPECT_EQ("3163EC3C96263143AF83EA5C9860DFB960EE2263413C7D7D8A9973FCC00E7692", 272 EXPECT_EQ("3163EC3C96263143AF83EA5C9860DFB960EE2263413C7D7D8A9973FCC00E7692",
273 GetHashedPrefValue(test.get(), "pref.path2", &list)); 273 GetHashedPrefValue(test.get(), "pref.path2", &list));
274 } 274 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698