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 "components/user_prefs/tracked/pref_hash_filter.h" | 5 #include "components/user_prefs/tracked/pref_hash_filter.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <set> | 10 #include <set> |
9 #include <string> | 11 #include <string> |
10 #include <utility> | 12 #include <utility> |
11 #include <vector> | 13 #include <vector> |
12 | 14 |
13 #include "base/basictypes.h" | |
14 #include "base/bind.h" | 15 #include "base/bind.h" |
15 #include "base/callback_forward.h" | 16 #include "base/callback_forward.h" |
16 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
17 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/macros.h" |
18 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
19 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
20 #include "base/metrics/histogram_base.h" | 22 #include "base/metrics/histogram_base.h" |
21 #include "base/metrics/histogram_samples.h" | 23 #include "base/metrics/histogram_samples.h" |
22 #include "base/metrics/statistics_recorder.h" | 24 #include "base/metrics/statistics_recorder.h" |
23 #include "base/prefs/testing_pref_store.h" | 25 #include "base/prefs/testing_pref_store.h" |
24 #include "base/values.h" | 26 #include "base/values.h" |
25 #include "components/user_prefs/tracked/hash_store_contents.h" | 27 #include "components/user_prefs/tracked/hash_store_contents.h" |
26 #include "components/user_prefs/tracked/mock_validation_delegate.h" | 28 #include "components/user_prefs/tracked/mock_validation_delegate.h" |
27 #include "components/user_prefs/tracked/pref_hash_store.h" | 29 #include "components/user_prefs/tracked/pref_hash_store.h" |
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 mock_pref_hash_store_->stored_value(kAtomicPref2).first); | 1032 mock_pref_hash_store_->stored_value(kAtomicPref2).first); |
1031 | 1033 |
1032 VerifyRecordedReset(false); | 1034 VerifyRecordedReset(false); |
1033 } | 1035 } |
1034 } | 1036 } |
1035 | 1037 |
1036 INSTANTIATE_TEST_CASE_P(PrefHashFilterTestInstance, | 1038 INSTANTIATE_TEST_CASE_P(PrefHashFilterTestInstance, |
1037 PrefHashFilterTest, | 1039 PrefHashFilterTest, |
1038 testing::Values(PrefHashFilter::NO_ENFORCEMENT, | 1040 testing::Values(PrefHashFilter::NO_ENFORCEMENT, |
1039 PrefHashFilter::ENFORCE_ON_LOAD)); | 1041 PrefHashFilter::ENFORCE_ON_LOAD)); |
OLD | NEW |