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