1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef UPDATE_ENGINE_MOCK_CONNECTION_MANAGER_H_
- #define UPDATE_ENGINE_MOCK_CONNECTION_MANAGER_H_
- #include <gmock/gmock.h>
- #include "update_engine/connection_manager_interface.h"
- namespace chromeos_update_engine {
- class MockConnectionManager : public ConnectionManagerInterface {
- public:
- MockConnectionManager() = default;
- MOCK_METHOD2(GetConnectionProperties,
- bool(ConnectionType* out_type,
- ConnectionTethering* out_tethering));
- MOCK_CONST_METHOD2(IsUpdateAllowedOver,
- bool(ConnectionType type, ConnectionTethering tethering));
- MOCK_CONST_METHOD0(IsAllowedConnectionTypesForUpdateSet, bool());
- };
- }
- #endif
|