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

Side by Side Diff: services/preferences/public/cpp/tracked/mock_validation_delegate.h

Issue 2856083002: Pref service: support for incognito prefs (Closed)
Patch Set: Rebase Created 3 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_MOCK_VALIDATION_DELEGATE_H_ 5 #ifndef SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_MOCK_VALIDATION_DELEGATE_H_
6 #define SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_MOCK_VALIDATION_DELEGATE_H_ 6 #define SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_MOCK_VALIDATION_DELEGATE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "services/preferences/public/interfaces/preferences_configuration.mojom .h" 15 #include "services/preferences/public/interfaces/preferences.mojom.h"
16 #include "services/preferences/public/interfaces/tracked_preference_validation_d elegate.mojom.h" 16 #include "services/preferences/public/interfaces/tracked_preference_validation_d elegate.mojom.h"
17 17
18 class MockValidationDelegate; 18 class MockValidationDelegate;
19 19
20 // A mock tracked preference validation delegate for use by tests. 20 // A mock tracked preference validation delegate for use by tests.
21 class MockValidationDelegateRecord 21 class MockValidationDelegateRecord
22 : public base::RefCounted<MockValidationDelegateRecord> { 22 : public base::RefCounted<MockValidationDelegateRecord> {
23 public: 23 public:
24 struct ValidationEvent { 24 struct ValidationEvent {
25 ValidationEvent( 25 ValidationEvent(
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 external_validation_value_state, 115 external_validation_value_state,
116 bool is_personal, 116 bool is_personal,
117 prefs::mojom::TrackedPreferenceMetadata::PrefTrackingStrategy strategy); 117 prefs::mojom::TrackedPreferenceMetadata::PrefTrackingStrategy strategy);
118 118
119 scoped_refptr<MockValidationDelegateRecord> record_; 119 scoped_refptr<MockValidationDelegateRecord> record_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(MockValidationDelegate); 121 DISALLOW_COPY_AND_ASSIGN(MockValidationDelegate);
122 }; 122 };
123 123
124 #endif // SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_MOCK_VALIDATION_DELEGATE_H_ 124 #endif // SERVICES_PREFERENCES_PUBLIC_CPP_TRACKED_MOCK_VALIDATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/preferences/public/cpp/tracked/configuration.h ('k') | services/preferences/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698