Refactor unzipper and patcher to allow for non-mojo implementations.
Supply a non-mojo unzipper/patcher in chrome/updater.
Change-Id: Ic884058a1b7b1de5b6cd631153550dfccfec9873
Bug: 947606
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1544616
Reviewed-by: Satoru Takabayashi <[email protected]>
Reviewed-by: Devlin <[email protected]>
Reviewed-by: David Roger <[email protected]>
Reviewed-by: Samuel Huang <[email protected]>
Reviewed-by: Sorin Jianu <[email protected]>
Commit-Queue: Joshua Pawlicki <[email protected]>
Cr-Commit-Position: refs/heads/master@{#648427}
diff --git a/components/update_client/update_client_unittest.cc b/components/update_client/update_client_unittest.cc
index 6b40ab0..d580470e 100644
--- a/components/update_client/update_client_unittest.cc
+++ b/components/update_client/update_client_unittest.cc
@@ -29,11 +29,13 @@
#include "components/update_client/component_unpacker.h"
#include "components/update_client/crx_update_item.h"
#include "components/update_client/network.h"
+#include "components/update_client/patcher.h"
#include "components/update_client/persisted_data.h"
#include "components/update_client/ping_manager.h"
#include "components/update_client/protocol_handler.h"
#include "components/update_client/test_configurator.h"
#include "components/update_client/test_installer.h"
+#include "components/update_client/unzipper.h"
#include "components/update_client/update_checker.h"
#include "components/update_client/update_client_errors.h"
#include "components/update_client/update_client_internal.h"
@@ -3866,7 +3868,8 @@
auto component_unpacker = base::MakeRefCounted<ComponentUnpacker>(
std::vector<uint8_t>(std::begin(gjpm_hash), std::end(gjpm_hash)),
TestFilePath("runaction_test_win.crx3"), nullptr,
- config->CreateServiceManagerConnector(),
+ config->GetUnzipperFactory()->Create(),
+ config->GetPatcherFactory()->Create(),
crx_file::VerifierFormat::CRX2_OR_CRX3);
component_unpacker->Unpack(base::BindOnce(