blob: 94d3c7f8102057604778ca9ef5b8040a7d47253e [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/proxy_resolution/win/windows_system_proxy_resolution_service.h"
#include "net/proxy_resolution/configured_proxy_resolution_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
TEST(WindowsSystemProxyResolutionServiceTest,
CastToConfiguredProxyResolutionService) {
WindowsSystemProxyResolutionService service;
auto configured_service = ConfiguredProxyResolutionService::CreateDirect();
ConfiguredProxyResolutionService* casted_service = configured_service.get();
EXPECT_FALSE(service.CastToConfiguredProxyResolutionService(&casted_service));
EXPECT_EQ(nullptr, casted_service);
}
} // namespace net