OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ |
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ |
7 | 7 |
8 #include <gmock/gmock.h> | 8 #include <gmock/gmock.h> |
9 | 9 |
10 #include "update_engine/mock_dbus_interface.h" | |
10 #include "update_engine/update_attempter.h" | 11 #include "update_engine/update_attempter.h" |
11 | 12 |
12 namespace chromeos_update_engine { | 13 namespace chromeos_update_engine { |
13 | 14 |
14 class UpdateAttempterMock : public UpdateAttempter { | 15 class UpdateAttempterMock : public UpdateAttempter { |
15 public: | 16 public: |
16 UpdateAttempterMock() : UpdateAttempter(NULL, NULL) {} | 17 UpdateAttempterMock() : UpdateAttempter(NULL, NULL, &dbus_) {} |
17 | 18 |
18 MOCK_METHOD2(Update, void(const std::string& app_version, | 19 MOCK_METHOD3(Update, void(const std::string& app_version, |
19 const std::string& omaha_url)); | 20 const std::string& omaha_url, |
21 bool force_proxy)); | |
petkov
2010/11/19 05:37:15
match the name of the argument.
adlr
2010/11/20 02:52:29
Done.
| |
22 MockDbusGlib dbus_; | |
20 }; | 23 }; |
21 | 24 |
22 } // namespace chromeos_update_engine | 25 } // namespace chromeos_update_engine |
23 | 26 |
24 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ | 27 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ |
OLD | NEW |