chromium/content/browser/browser_url_handler_impl_unittest.cc

// Copyright 2011 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/browser_url_handler_impl.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_browser_context.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace content {

class BrowserURLHandlerImplTest : public testing::Test {};

// Test URL rewriter that rewrites all "foo://" URLs to "bar://bar".
static bool FooRewriter(GURL* url, BrowserContext* browser_context) {}

// Test URL rewriter that rewrites all "bar://" URLs to "foo://foo".
static bool BarRewriter(GURL* url, BrowserContext* browser_context) {}

TEST_F(BrowserURLHandlerImplTest, BasicRewriteAndReverse) {}

TEST_F(BrowserURLHandlerImplTest, NullHandlerReverse) {}

// Verify that the reverse handler for view-source does not duplicate query
// parameters.
TEST_F(BrowserURLHandlerImplTest, ViewSourceReverse) {}

// Verify that GetPossibleRewrites retrieves the rewrites from all handlers that
// match, in order of priority.
TEST_F(BrowserURLHandlerImplTest, GetPossibleRewrites) {}

}  // namespace content