Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 1 | // Copyright 2014 The Chromium OS 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 | |
Gilad Arnold | 48415f1 | 2014-06-27 07:10:58 -0700 | [diff] [blame^] | 5 | #ifndef UPDATE_ENGINE_UPDATE_MANAGER_FAKE_CONFIG_PROVIDER_H_ |
| 6 | #define UPDATE_ENGINE_UPDATE_MANAGER_FAKE_CONFIG_PROVIDER_H_ |
Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 7 | |
Alex Deymo | 63784a5 | 2014-05-28 10:46:14 -0700 | [diff] [blame] | 8 | #include "update_engine/update_manager/config_provider.h" |
| 9 | #include "update_engine/update_manager/fake_variable.h" |
Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 10 | |
Alex Deymo | 63784a5 | 2014-05-28 10:46:14 -0700 | [diff] [blame] | 11 | namespace chromeos_update_manager { |
Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 12 | |
| 13 | // Fake implementation of the ConfigProvider base class. |
| 14 | class FakeConfigProvider : public ConfigProvider { |
| 15 | public: |
| 16 | FakeConfigProvider() {} |
| 17 | |
| 18 | protected: |
Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 19 | virtual FakeVariable<bool>* var_is_oobe_enabled() override { |
| 20 | return &var_is_oobe_enabled_; |
| 21 | } |
| 22 | |
| 23 | private: |
| 24 | FakeVariable<bool> var_is_oobe_enabled_{ |
| 25 | "is_oobe_enabled", kVariableModeConst}; |
| 26 | |
| 27 | DISALLOW_COPY_AND_ASSIGN(FakeConfigProvider); |
| 28 | }; |
| 29 | |
Alex Deymo | 63784a5 | 2014-05-28 10:46:14 -0700 | [diff] [blame] | 30 | } // namespace chromeos_update_manager |
Alex Deymo | f9f1263 | 2014-04-17 13:51:26 -0700 | [diff] [blame] | 31 | |
Gilad Arnold | 48415f1 | 2014-06-27 07:10:58 -0700 | [diff] [blame^] | 32 | #endif // UPDATE_ENGINE_UPDATE_MANAGER_FAKE_CONFIG_PROVIDER_H_ |