blob: d51f775ec6c373957679ef5a655edda1cccbbc90 [file] [log] [blame]
Alex Deymoaea4c1c2015-08-19 20:24:43 -07001//
2// Copyright (C) 2012 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
Jay Srinivasan55f50c22013-01-10 19:24:35 -080016
Gilad Arnold5bb4c902014-04-10 12:32:13 -070017#include "update_engine/fake_system_state.h"
Alex Deymo560ae1d2014-10-28 02:17:54 -070018
Jay Srinivasan55f50c22013-01-10 19:24:35 -080019namespace chromeos_update_engine {
20
21// Mock the SystemStateInterface so that we could lie that
22// OOBE is completed even when there's no such marker file, etc.
Gilad Arnold5bb4c902014-04-10 12:32:13 -070023FakeSystemState::FakeSystemState()
Sen Jiangaeeb2e02016-06-09 15:00:16 -070024 : mock_update_attempter_(this, nullptr, nullptr),
Alex Deymo30534502015-07-20 15:06:33 -070025 mock_request_params_(this),
26 fake_update_manager_(&fake_clock_),
27 clock_(&fake_clock_),
28 connection_manager_(&mock_connection_manager_),
29 hardware_(&fake_hardware_),
30 metrics_lib_(&mock_metrics_lib_),
31 prefs_(&mock_prefs_),
32 powerwash_safe_prefs_(&mock_powerwash_safe_prefs_),
33 payload_state_(&mock_payload_state_),
34 update_attempter_(&mock_update_attempter_),
35 request_params_(&mock_request_params_),
36 p2p_manager_(&mock_p2p_manager_),
37 update_manager_(&fake_update_manager_),
38 device_policy_(nullptr),
39 fake_system_rebooted_(false) {
Jay Srinivasan19409b72013-04-12 19:23:36 -070040 mock_payload_state_.Initialize(this);
Jay Srinivasan55f50c22013-01-10 19:24:35 -080041}
42
Alex Deymo94c06162014-03-21 20:34:46 -070043} // namespace chromeos_update_engine