0
Files
src/content/test/storage_partition_test_helpers.h
danakj 50243ff043 Drop web_test_support dependency from content_browsertests
This was included for a single method, which does not need web test
stuff at all. Move the method (and its companion) over to another file
in content/public/test/.

R=nasko@chromium.org

Bug: 866140
Change-Id: Iad7d324b4c2d839d406b09d4f1c2397c523c309b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2112902
Auto-Submit: danakj <danakj@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#752220}
2020-03-20 23:14:08 +00:00

26 lines
986 B
C++

// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_TEST_STORAGE_PARTITION_TEST_HELPERS_H_
#define CONTENT_TEST_STORAGE_PARTITION_TEST_HELPERS_H_
#include "base/callback.h"
namespace content {
class StoragePartition;
// Replaces the SharedWorkerService implementation with a test-specific one that
// tracks running shared workers.
void InjectTestSharedWorkerService(StoragePartition* storage_partition);
// Terminates all workers and notifies when complete. This is used for
// testing when it is important to make sure that all shared worker activity
// has stopped. Can only be used if InjectTestSharedWorkerService() was called.
void TerminateAllSharedWorkers(StoragePartition* storage_partition,
base::OnceClosure callback);
} // namespace content
#endif // CONTENT_PUBLIC_TEST_STORAGE_PARTITION_TEST_HELPERS_H_