| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |