Skip to content

Commit

Permalink
Add stub implementations to test_configurator
Browse files Browse the repository at this point in the history
Add implementations of new virtual methods to test_configurator

b/325626249

Change-Id: I000d8742475829bd396918f17cedb3450d52773a
  • Loading branch information
TyHolc committed Aug 16, 2024
1 parent 7e00353 commit cd8cd8f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/update_client/test_configurator.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ class TestConfigurator : public Configurator {

bool GetUseCompressedUpdates() const override { return false; }
void SetUseCompressedUpdates(bool use_compressed_updates) override {}

bool GetAllowSelfSignedPackages() const override { return false; }
void SetAllowSelfSignedPackages(bool allow_self_signed_packages) override {}

std::string GetUpdateServerUrl() const override { return ""; }
void SetUpdateServerUrl(const std::string& update_server_url) override {}

bool GetRequireNetworkEncryption() const override { return true; }
void SetRequireNetworkEncryption(bool require_network_encryption) override {}
#else
network::TestURLLoaderFactory* test_url_loader_factory() {
return &test_url_loader_factory_;
Expand Down

0 comments on commit cd8cd8f

Please sign in to comment.