Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1370)

Side by Side Diff: third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/loader/MixedContentChecker.h" 5 #include "core/loader/MixedContentChecker.h"
6 6
7 #include <base/macros.h>
8 #include <memory>
7 #include "core/frame/Settings.h" 9 #include "core/frame/Settings.h"
8 #include "core/loader/EmptyClients.h" 10 #include "core/loader/EmptyClients.h"
9 #include "core/testing/DummyPageHolder.h" 11 #include "core/testing/DummyPageHolder.h"
10 #include "platform/network/ResourceResponse.h" 12 #include "platform/network/ResourceResponse.h"
11 #include "platform/weborigin/KURL.h" 13 #include "platform/weborigin/KURL.h"
12 #include "platform/weborigin/SecurityOrigin.h" 14 #include "platform/weborigin/SecurityOrigin.h"
13 #include "public/platform/WebMixedContent.h" 15 #include "public/platform/WebMixedContent.h"
14 #include "public/platform/WebMixedContentContextType.h" 16 #include "public/platform/WebMixedContentContextType.h"
15 #include "testing/gmock/include/gmock/gmock-generated-function-mockers.h" 17 #include "testing/gmock/include/gmock/gmock-generated-function-mockers.h"
16 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
17 #include "wtf/RefPtr.h" 19 #include "wtf/RefPtr.h"
18 #include <base/macros.h>
19 #include <memory>
20 20
21 namespace blink { 21 namespace blink {
22 22
23 // Tests that MixedContentChecker::isMixedContent correctly detects or ignores 23 // Tests that MixedContentChecker::isMixedContent correctly detects or ignores
24 // many cases where there is or there is not mixed content, respectively. 24 // many cases where there is or there is not mixed content, respectively.
25 // Note: Renderer side version of 25 // Note: Renderer side version of
26 // MixedContentNavigationThrottleTest.IsMixedContent. Must be kept in sync 26 // MixedContentNavigationThrottleTest.IsMixedContent. Must be kept in sync
27 // manually! 27 // manually!
28 TEST(MixedContentCheckerTest, IsMixedContent) { 28 TEST(MixedContentCheckerTest, IsMixedContent) {
29 struct TestCase { 29 struct TestCase {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 .settings() 139 .settings()
140 ->getStrictMixedContentCheckingForPlugin())); 140 ->getStrictMixedContentCheckingForPlugin()));
141 response2.setURL(displayedUrl); 141 response2.setURL(displayedUrl);
142 EXPECT_CALL(*client, didDisplayContentWithCertificateErrors(displayedUrl)); 142 EXPECT_CALL(*client, didDisplayContentWithCertificateErrors(displayedUrl));
143 MixedContentChecker::handleCertificateError( 143 MixedContentChecker::handleCertificateError(
144 &dummyPageHolder->frame(), response2, WebURLRequest::FrameTypeNone, 144 &dummyPageHolder->frame(), response2, WebURLRequest::FrameTypeNone,
145 requestContext); 145 requestContext);
146 } 146 }
147 147
148 } // namespace blink 148 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp ('k') | third_party/WebKit/Source/core/loader/NavigationScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698