chromium/content/browser/background_fetch/background_fetch_job_controller_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/background_fetch/background_fetch_job_controller.h"

#include <map>
#include <memory>
#include <set>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/uuid.h"
#include "components/download/public/common/download_item.h"
#include "content/browser/background_fetch/background_fetch_constants.h"
#include "content/browser/background_fetch/background_fetch_context.h"
#include "content/browser/background_fetch/background_fetch_data_manager.h"
#include "content/browser/background_fetch/background_fetch_registration_id.h"
#include "content/browser/background_fetch/background_fetch_scheduler.h"
#include "content/browser/background_fetch/background_fetch_test_base.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/background_fetch_delegate.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/fake_download_item.h"
#include "content/public/test/mock_download_manager.h"
#include "content/public/test/test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/blink/public/mojom/background_fetch/background_fetch.mojom.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom.h"
#include "url/origin.h"

FetchAPIRequestHeadersMap;
_;

namespace content {
namespace {

const int64_t kExampleServiceWorkerRegistrationId =;
const char kExampleDeveloperId[] =;
const char kExampleResponseData[] =;

enum class JobCompletionStatus {};

}  // namespace

class BackgroundFetchJobControllerTest : public BackgroundFetchTestBase {};

TEST_F(BackgroundFetchJobControllerTest, SingleRequestJob) {}

TEST_F(BackgroundFetchJobControllerTest, SingleRequestJobWithInsecureOrigin) {}

TEST_F(BackgroundFetchJobControllerTest, MultipleRequestJob) {}

TEST_F(BackgroundFetchJobControllerTest, MultipleRequestsJobWithMixedContent) {}

TEST_F(BackgroundFetchJobControllerTest, InProgressBytes) {}

TEST_F(BackgroundFetchJobControllerTest, Abort) {}

TEST_F(BackgroundFetchJobControllerTest, AbortDownloadExceededCrossOrigin) {}

TEST_F(BackgroundFetchJobControllerTest, Progress) {}

TEST_F(BackgroundFetchJobControllerTest, ServiceWorkerRegistrationDeleted) {}

TEST_F(BackgroundFetchJobControllerTest, ServiceWorkerDatabaseDeleted) {}

}  // namespace content