chromium/extensions/browser/service_worker/worker_id_set_unittest.cc

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

#include <memory>
#include <string>

#include "base/containers/contains.h"
#include "extensions/browser/extensions_test.h"
#include "extensions/browser/service_worker/worker_id_set.h"
#include "extensions/common/extension_id.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace extensions {

namespace {

constexpr char kIdA[] =;
constexpr char kIdB[] =;
constexpr char kIdC[] =;
constexpr char kIdD[] =;
constexpr char kIdE[] =;
constexpr char kIdF[] =;
constexpr char kIdG[] =;
constexpr char kIdX[] =;

// A vector based implementation of WorkerIdSet.
// GetAllForExtension()/Contains() are O(n).
class VectorWorkerIdListImpl {};

std::vector<WorkerId> GenerateWorkerIds(
    const std::vector<ExtensionId>& extension_ids,
    const std::vector<int>& render_process_ids,
    const std::vector<int64_t>& worker_version_ids,
    const std::vector<int>& worker_thread_ids) {}

}  // namespace

class WorkerIdSetTest : public ExtensionsTest {};

TEST_F(WorkerIdSetTest, GetAllForExtension) {}

TEST_F(WorkerIdSetTest, RemoveAllForExtension) {}

// Tests parity of WorkerIdSet methods with a std::vector implementation.
TEST_F(WorkerIdSetTest, ExtensiveCases) {}

}  // namespace extensions