123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #include "update_engine/network_selector_stub.h"
- #include <memory>
- #include <base/logging.h>
- namespace chromeos_update_engine {
- namespace network {
- std::unique_ptr<NetworkSelectorInterface> CreateNetworkSelector() {
- return std::make_unique<NetworkSelectorStub>();
- }
- }
- const NetworkId kDefaultNetworkId = 0;
- bool NetworkSelectorStub::SetProcessNetwork(NetworkId network_id) {
- if (network_id != kDefaultNetworkId) {
- LOG(ERROR) << "SetProcessNetwork not implemented.";
- return false;
- }
- return true;
- }
- }
|