Sebastian Jansson | 9eb3886 | 2018-06-14 16:47:42 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | #ifndef RTC_BASE_EXPERIMENTS_FIELD_TRIAL_UNITS_H_ |
| 11 | #define RTC_BASE_EXPERIMENTS_FIELD_TRIAL_UNITS_H_ |
| 12 | |
Sebastian Jansson | 9eb3886 | 2018-06-14 16:47:42 +0200 | [diff] [blame] | 13 | #include "api/units/data_rate.h" |
| 14 | #include "api/units/data_size.h" |
| 15 | #include "api/units/time_delta.h" |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 16 | #include "rtc_base/experiments/field_trial_parser.h" |
Sebastian Jansson | 9eb3886 | 2018-06-14 16:47:42 +0200 | [diff] [blame] | 17 | |
| 18 | namespace webrtc { |
Sebastian Jansson | 55251c3 | 2019-08-08 11:14:51 +0200 | [diff] [blame^] | 19 | |
| 20 | template <> |
| 21 | absl::optional<DataRate> ParseTypedParameter<DataRate>(std::string str); |
| 22 | template <> |
| 23 | absl::optional<DataSize> ParseTypedParameter<DataSize>(std::string str); |
| 24 | template <> |
| 25 | absl::optional<TimeDelta> ParseTypedParameter<TimeDelta>(std::string str); |
| 26 | |
Sebastian Jansson | 9eb3886 | 2018-06-14 16:47:42 +0200 | [diff] [blame] | 27 | extern template class FieldTrialParameter<DataRate>; |
| 28 | extern template class FieldTrialParameter<DataSize>; |
| 29 | extern template class FieldTrialParameter<TimeDelta>; |
| 30 | |
Sebastian Jansson | b22f077 | 2018-11-19 17:44:33 +0100 | [diff] [blame] | 31 | extern template class FieldTrialConstrained<DataRate>; |
| 32 | extern template class FieldTrialConstrained<DataSize>; |
| 33 | extern template class FieldTrialConstrained<TimeDelta>; |
| 34 | |
Sebastian Jansson | 9eb3886 | 2018-06-14 16:47:42 +0200 | [diff] [blame] | 35 | extern template class FieldTrialOptional<DataRate>; |
| 36 | extern template class FieldTrialOptional<DataSize>; |
| 37 | extern template class FieldTrialOptional<TimeDelta>; |
| 38 | } // namespace webrtc |
| 39 | |
| 40 | #endif // RTC_BASE_EXPERIMENTS_FIELD_TRIAL_UNITS_H_ |