OLD | NEW |
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 COMPONENTS_RAPPOR_TEST_RAPPOR_SERVICE_H_ | 5 #ifndef COMPONENTS_RAPPOR_TEST_RAPPOR_SERVICE_H_ |
6 #define COMPONENTS_RAPPOR_TEST_RAPPOR_SERVICE_H_ | 6 #define COMPONENTS_RAPPOR_TEST_RAPPOR_SERVICE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/prefs/testing_pref_service.h" | 15 #include "components/prefs/testing_pref_service.h" |
16 #include "components/rappor/rappor_service.h" | 16 #include "components/rappor/rappor_service.h" |
17 #include "components/rappor/test_log_uploader.h" | 17 #include "components/rappor/test_log_uploader.h" |
18 | 18 |
19 namespace rappor { | 19 namespace rappor { |
20 | 20 |
21 // This class duplicates the functionality of Sample, with a cohort initialized | 21 // This class duplicates the functionality of Sample, with a cohort initialized |
22 // always to 0. It keeps a shadow object around which copies every flag field | 22 // always to 0. It keeps a shadow object around which copies every flag field |
23 // and string field set on the Sample. | 23 // and string field set on the Sample. |
24 class TestSample : public Sample { | 24 class TestSample : public Sample { |
25 public: | 25 public: |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 // Sets this to true to mock incognito state. | 129 // Sets this to true to mock incognito state. |
130 bool is_incognito_; | 130 bool is_incognito_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(TestRapporService); | 132 DISALLOW_COPY_AND_ASSIGN(TestRapporService); |
133 }; | 133 }; |
134 | 134 |
135 } // namespace rappor | 135 } // namespace rappor |
136 | 136 |
137 #endif // COMPONENTS_RAPPOR_TEST_RAPPOR_SERVICE_H_ | 137 #endif // COMPONENTS_RAPPOR_TEST_RAPPOR_SERVICE_H_ |
OLD | NEW |