OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 BASE_TEST_MOCK_ENTROPY_PROVIDER_H_ | 5 #ifndef BASE_TEST_MOCK_ENTROPY_PROVIDER_H_ |
6 #define BASE_TEST_MOCK_ENTROPY_PROVIDER_H_ | 6 #define BASE_TEST_MOCK_ENTROPY_PROVIDER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
9 | 11 |
10 namespace base { | 12 namespace base { |
11 | 13 |
12 class MockEntropyProvider : public base::FieldTrial::EntropyProvider { | 14 class MockEntropyProvider : public base::FieldTrial::EntropyProvider { |
13 public: | 15 public: |
14 ~MockEntropyProvider() override; | 16 ~MockEntropyProvider() override; |
15 | 17 |
16 // base::FieldTrial::EntropyProvider: | 18 // base::FieldTrial::EntropyProvider: |
17 double GetEntropyForTrial(const std::string& trial_name, | 19 double GetEntropyForTrial(const std::string& trial_name, |
18 uint32 randomization_seed) const override; | 20 uint32_t randomization_seed) const override; |
19 }; | 21 }; |
20 | 22 |
21 } // namespace base | 23 } // namespace base |
22 | 24 |
23 #endif // BASE_TEST_MOCK_ENTROPY_PROVIDER_H_ | 25 #endif // BASE_TEST_MOCK_ENTROPY_PROVIDER_H_ |
OLD | NEW |