Elly Fong-Jones | 99d8cdad | 2019-08-27 15:48:45 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_UNEXPIRE_FLAGS_H_ |
| 6 | #define CHROME_BROWSER_UNEXPIRE_FLAGS_H_ |
| 7 | |
Elly Fong-Jones | 5c9f94e | 2019-10-24 13:55:06 | [diff] [blame] | 8 | #include "base/callback.h" |
Elly Fong-Jones | 99d8cdad | 2019-08-27 15:48:45 | [diff] [blame] | 9 | #include "base/feature_list.h" |
| 10 | |
| 11 | namespace flags { |
| 12 | |
Elly Fong-Jones | 99d8cdad | 2019-08-27 15:48:45 | [diff] [blame] | 13 | bool IsFlagExpired(const char* internal_name); |
| 14 | |
Elly Fong-Jones | 5c9f94e | 2019-10-24 13:55:06 | [diff] [blame] | 15 | namespace testing { |
| 16 | |
Elly Fong-Jones | 11c628ce | 2020-07-23 17:04:01 | [diff] [blame^] | 17 | // Overrides the expiration milestone for a named flag. Useful for tests that |
| 18 | // need to expire a flag that doesn't normally appear in the generated |
| 19 | // expiration table. |
| 20 | void SetFlagExpiration(const std::string& name, int mstone); |
Elly Fong-Jones | 5c9f94e | 2019-10-24 13:55:06 | [diff] [blame] | 21 | |
| 22 | } // namespace testing |
| 23 | |
Elly Fong-Jones | 99d8cdad | 2019-08-27 15:48:45 | [diff] [blame] | 24 | } // namespace flags |
| 25 | |
| 26 | #endif // CHROME_BROWSER_UNEXPIRE_FLAGS_H_ |