#include "chrome/browser/extensions/updater/extension_update_client_base_browsertest.h"
#include <memory>
#include <optional>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "chrome/browser/chrome_browser_main.h"
#include "chrome/browser/chrome_browser_main_extra_parts.h"
#include "chrome/browser/extensions/browsertest_util.h"
#include "chrome/browser/profiles/profile.h"
#include "components/update_client/net/url_loader_post_interceptor.h"
#include "components/update_client/protocol_handler.h"
#include "content/public/browser/browser_context.h"
#include "extensions/browser/updater/update_service.h"
#include "extensions/browser/updater/update_service_factory.h"
#include "extensions/common/extension_features.h"
namespace extensions {
namespace {
ConfigFactoryCallback;
class TestChromeUpdateClientConfig
: public extensions::ChromeUpdateClientConfig { … };
class TestChromeBrowserMainExtraParts : public ChromeBrowserMainExtraParts { … };
class UpdateClientCompleteEventWaiter
: public update_client::UpdateClient::Observer { … };
}
ExtensionUpdateClientBaseTest::ExtensionUpdateClientBaseTest()
: … { … }
ExtensionUpdateClientBaseTest::~ExtensionUpdateClientBaseTest() = default;
std::vector<GURL> ExtensionUpdateClientBaseTest::GetUpdateUrls() const { … }
std::vector<GURL> ExtensionUpdateClientBaseTest::GetPingUrls() const { … }
ConfigFactoryCallback
ExtensionUpdateClientBaseTest::ChromeUpdateClientConfigFactory() const { … }
void ExtensionUpdateClientBaseTest::SetUp() { … }
void ExtensionUpdateClientBaseTest::CreatedBrowserMainParts(
content::BrowserMainParts* parts) { … }
void ExtensionUpdateClientBaseTest::SetUpOnMainThread() { … }
void ExtensionUpdateClientBaseTest::TearDownOnMainThread() { … }
void ExtensionUpdateClientBaseTest::SetUpNetworkInterceptors() { … }
update_client::UpdateClient::Observer::Events
ExtensionUpdateClientBaseTest::WaitOnComponentUpdaterCompleteEvent(
const std::string& id) { … }
bool ExtensionUpdateClientBaseTest::OnRequest(
content::URLLoaderInterceptor::RequestParams* params) { … }
}