OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 SCOPED_SYS_INFO_CHROMEOS_VERSION_FOR_TESTING_H_ |
| 6 #define SCOPED_SYS_INFO_CHROMEOS_VERSION_FOR_TESTING_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/time/time.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 // unit_tests must always reset status of modified global singletons, |
| 15 // otherwise later tests will fail, because they are run in the same process. |
| 16 class ScopedSetRunningOnChromeOSForTesting { |
| 17 public: |
| 18 ScopedSetRunningOnChromeOSForTesting(const std::string& lsb_release, |
| 19 const base::Time& lsb_release_time); |
| 20 ~ScopedSetRunningOnChromeOSForTesting(); |
| 21 |
| 22 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(ScopedSetRunningOnChromeOSForTesting); |
| 24 }; |
| 25 |
| 26 } // namespace chromeos |
| 27 |
| 28 #endif // SCOPED_SYS_INFO_CHROMEOS_VERSION_FOR_TESTING_H_ |
OLD | NEW |