Commit 1269fbd8 authored by Kenichi Ishibashi's avatar Kenichi Ishibashi Committed by Commit Bot

S13nServiceWorker: Skip tests in ServiceWorkerContextRequestHandlerTest

We don't use ServiceWorkerContextRequestHandler
when S13nServiceWorker is enabled.

Bug: 860361
Change-Id: Ib0e73f84b0e014d652941e1d8b3292fc32005149
Reviewed-on: https://chromium-review.googlesource.com/1146138Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
Reviewed-by: default avatarMakoto Shimazu <shimazu@chromium.org>
Commit-Queue: Kenichi Ishibashi <bashi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577461}
parent b95d970a
......@@ -31,6 +31,7 @@
#include "services/network/public/mojom/request_context_frame_type.mojom.h"
#include "storage/browser/blob/blob_storage_context.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_registration.mojom.h"
namespace content {
......@@ -60,6 +61,11 @@ class ServiceWorkerContextRequestHandlerTest : public testing::Test {
: browser_thread_bundle_(TestBrowserThreadBundle::IO_MAINLOOP) {}
void SetUp() override {
// ServiceWorkerContextRequestHandler is a non-S13nServiceWorker specific
// class and we don't use it when S13nServiceWorker is enabled.
scoped_feature_list_.InitAndDisableFeature(
blink::features::kServiceWorkerServicification);
helper_.reset(new EmbeddedWorkerTestHelper(base::FilePath()));
context()->storage()->LazyInitializeForTest(base::DoNothing());
base::RunLoop().RunUntilIdle();
......@@ -160,6 +166,9 @@ class ServiceWorkerContextRequestHandlerTest : public testing::Test {
}
protected:
// |scoped_feature_list_| must be before |thread_bundle_|.
// See comments in ServiceWorkerProviderHostTest.
base::test::ScopedFeatureList scoped_feature_list_;
TestBrowserThreadBundle browser_thread_bundle_;
std::unique_ptr<EmbeddedWorkerTestHelper> helper_;
scoped_refptr<ServiceWorkerRegistration> registration_;
......
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