chromium/extensions/browser/api/declarative_net_request/file_sequence_helper_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 "extensions/browser/api/declarative_net_request/file_sequence_helper.h"

#include <functional>
#include <utility>
#include <vector>

#include "base/files/file_util.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/threading/thread_restrictions.h"
#include "base/version.h"
#include "components/crx_file/id_util.h"
#include "extensions/browser/api/declarative_net_request/constants.h"
#include "extensions/browser/api/declarative_net_request/file_backed_ruleset_source.h"
#include "extensions/browser/api/declarative_net_request/parse_info.h"
#include "extensions/browser/api/declarative_net_request/rule_counts.h"
#include "extensions/browser/api/declarative_net_request/test_utils.h"
#include "extensions/browser/api/declarative_net_request/utils.h"
#include "extensions/browser/extension_file_task_runner.h"
#include "extensions/browser/extensions_test.h"
#include "extensions/common/api/declarative_net_request.h"
#include "extensions/common/api/declarative_net_request/constants.h"
#include "extensions/common/api/declarative_net_request/test_utils.h"
#include "services/data_decoder/public/cpp/test_support/in_process_data_decoder.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace extensions::declarative_net_request {
namespace {

api::declarative_net_request::Rule GetAPIRule(const TestRule& rule) {}

struct TestLoadRulesetInfo {};

struct TestCase {};

ExtensionId GenerateDummyExtensionID() {}

class FileSequenceHelperTest : public ExtensionsTest {};

TEST_F(FileSequenceHelperTest, NoRulesetsToLoad) {}

TEST_F(FileSequenceHelperTest, IndexedRulesetDeleted) {}

TEST_F(FileSequenceHelperTest, ChecksumMismatch) {}

TEST_F(FileSequenceHelperTest, RulesetFormatVersionMismatch) {}

TEST_F(FileSequenceHelperTest, JSONAndIndexedRulesetDeleted) {}

// Tests updating dynamic rules.
TEST_F(FileSequenceHelperTest, UpdateDynamicRules) {}

}  // namespace
}  // namespace extensions::declarative_net_request