chromium/components/url_rewrite/browser/url_request_rewrite_rules_manager_browsertest.cc

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

#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/memory/raw_ptr.h"
#include "base/path_service.h"
#include "base/test/scoped_feature_list.h"
#include "components/url_rewrite/browser/url_request_rewrite_rules_manager.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/shell/browser/shell.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"

namespace url_rewrite {

class UrlRequestRewriteRulesManagerBrowserTest
    : public content::ContentBrowserTest {};

IN_PROC_BROWSER_TEST_F(UrlRequestRewriteRulesManagerBrowserTest,
                       AddRemoveWebContentsSucceeds) {}

IN_PROC_BROWSER_TEST_F(UrlRequestRewriteRulesManagerBrowserTest,
                       RulesUpdatedWithSingleWebContents) {}

IN_PROC_BROWSER_TEST_F(UrlRequestRewriteRulesManagerBrowserTest,
                       RulesUpdatedWithMultipleWebContents) {}

// Tests that adding a WebContents after a navigation has already occurred
// does not trigger a DCHECK on destruction. This is a regression test for
// https://crbug.com/1152930.
IN_PROC_BROWSER_TEST_F(UrlRequestRewriteRulesManagerBrowserTest,
                       WebContentsAddedAfterNavigation) {}
}  // namespace url_rewrite