chromium/third_party/blink/renderer/core/loader/mixed_content_checker_test.cc

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

#include "third_party/blink/renderer/core/loader/mixed_content_checker.h"

#include <memory>

#include "base/memory/scoped_refptr.h"
#include "build/build_config.h"
#include "build/chromecast_buildflags.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/public/mojom/loader/mixed_content.mojom-blink.h"
#include "third_party/blink/public/mojom/loader/request_context_frame_type.mojom-blink.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/loader/empty_clients.h"
#include "third_party/blink/renderer/core/loader/mock_content_security_notifier.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_client_settings_object.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_response.h"
#include "third_party/blink/renderer/platform/loader/mixed_content.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"

namespace blink {

// Tests that `blink::MixedContentChecker::IsMixedContent` correctly detects or
// ignores many cases where there is or there is not mixed content respectively.
// Note: Renderer side version of
// `content::MixedContentCheckerTest::IsMixedContent`.
// Must be kept in sync manually!
// LINT.IfChange
TEST(MixedContentCheckerTest, IsMixedContent) {}
// LINT.ThenChange(content/browser/renderer_host/mixed_content_checker_unittest.cc)

TEST(MixedContentCheckerTest, ContextTypeForInspector) {}

TEST(MixedContentCheckerTest, HandleCertificateError) {}

TEST(MixedContentCheckerTest, DetectMixedForm) {}

TEST(MixedContentCheckerTest, DetectMixedFavicon) {}

TEST(MixedContentCheckerTest, DetectUpgradeableMixedContent) {}

class TestFetchClientSettingsObject : public FetchClientSettingsObject {};

TEST(MixedContentCheckerTest,
     NotAutoupgradedMixedContentHasUpgradeIfInsecureSet) {}

TEST(MixedContentCheckerTest, AutoupgradedMixedContentHasUpgradeIfInsecureSet) {}

TEST(MixedContentCheckerTest,
     AutoupgradeMixedContentWithLiteralLocalIpAddress) {}

TEST(MixedContentCheckerTest,
     NotAutoupgradeMixedContentWithLiteralNonLocalIpAddress) {}

}  // namespace blink