Commit 449f246d authored by John Abd-El-Malek's avatar John Abd-El-Malek Committed by Commit Bot

Switch ErrorPageTest tests to use the new URLLoaderInterceptor helper.

BUG=776589

Change-Id: I74130c4be9037a4f3204fac90180a79c4fe6e026
Reviewed-on: https://chromium-review.googlesource.com/806754Reviewed-by: default avatarDoug Turner <dougt@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521761}
parent 97756170
This diff is collapsed.
...@@ -1017,11 +1017,6 @@ void StoragePartitionImpl::ClearBluetoothAllowedDevicesMapForTesting() { ...@@ -1017,11 +1017,6 @@ void StoragePartitionImpl::ClearBluetoothAllowedDevicesMapForTesting() {
bluetooth_allowed_devices_map_->Clear(); bluetooth_allowed_devices_map_->Clear();
} }
void StoragePartitionImpl::SetNetworkFactoryForTesting(
mojom::URLLoaderFactory* test_factory) {
url_loader_factory_getter_->SetNetworkFactoryForTesting(test_factory);
}
BrowserContext* StoragePartitionImpl::browser_context() const { BrowserContext* StoragePartitionImpl::browser_context() const {
return browser_context_; return browser_context_;
} }
......
...@@ -117,8 +117,6 @@ class CONTENT_EXPORT StoragePartitionImpl ...@@ -117,8 +117,6 @@ class CONTENT_EXPORT StoragePartitionImpl
base::OnceClosure callback) override; base::OnceClosure callback) override;
void Flush() override; void Flush() override;
void ClearBluetoothAllowedDevicesMapForTesting() override; void ClearBluetoothAllowedDevicesMapForTesting() override;
void SetNetworkFactoryForTesting(
mojom::URLLoaderFactory* test_factory) override;
BackgroundFetchContext* GetBackgroundFetchContext(); BackgroundFetchContext* GetBackgroundFetchContext();
BackgroundSyncContext* GetBackgroundSyncContext(); BackgroundSyncContext* GetBackgroundSyncContext();
PaymentAppContextImpl* GetPaymentAppContext(); PaymentAppContextImpl* GetPaymentAppContext();
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "base/files/file_path.h" #include "base/files/file_path.h"
#include "base/time/time.h" #include "base/time/time.h"
#include "content/common/content_export.h" #include "content/common/content_export.h"
#include "content/public/common/url_loader_factory.mojom.h"
#include "net/cookies/cookie_store.h" #include "net/cookies/cookie_store.h"
class GURL; class GURL;
...@@ -195,11 +194,6 @@ class CONTENT_EXPORT StoragePartition { ...@@ -195,11 +194,6 @@ class CONTENT_EXPORT StoragePartition {
// Clear the bluetooth allowed devices map. For test use only. // Clear the bluetooth allowed devices map. For test use only.
virtual void ClearBluetoothAllowedDevicesMapForTesting() = 0; virtual void ClearBluetoothAllowedDevicesMapForTesting() = 0;
// Overrides the network URLLoaderFactory for subsequent requests. Passing a
// null pointer will restore the default behavior.
virtual void SetNetworkFactoryForTesting(
mojom::URLLoaderFactory* test_factory) = 0;
protected: protected:
virtual ~StoragePartition() {} virtual ~StoragePartition() {}
}; };
......
...@@ -116,7 +116,4 @@ void TestStoragePartition::Flush() {} ...@@ -116,7 +116,4 @@ void TestStoragePartition::Flush() {}
void TestStoragePartition::ClearBluetoothAllowedDevicesMapForTesting() {} void TestStoragePartition::ClearBluetoothAllowedDevicesMapForTesting() {}
void TestStoragePartition::SetNetworkFactoryForTesting(
mojom::URLLoaderFactory* test_factory) {}
} // namespace content } // namespace content
...@@ -155,9 +155,6 @@ class TestStoragePartition : public StoragePartition { ...@@ -155,9 +155,6 @@ class TestStoragePartition : public StoragePartition {
void ClearBluetoothAllowedDevicesMapForTesting() override; void ClearBluetoothAllowedDevicesMapForTesting() override;
void SetNetworkFactoryForTesting(
mojom::URLLoaderFactory* test_factory) override;
private: private:
base::FilePath file_path_; base::FilePath file_path_;
net::URLRequestContextGetter* url_request_context_getter_ = nullptr; net::URLRequestContextGetter* url_request_context_getter_ = nullptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment