OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/origin_trials/OriginTrialContext.h" | 5 #include "core/origin_trials/OriginTrialContext.h" |
6 | 6 |
7 #include "core/HTMLNames.h" | 7 #include "core/HTMLNames.h" |
8 #include "core/dom/DOMException.h" | 8 #include "core/dom/DOMException.h" |
9 #include "core/dom/ExceptionCode.h" | |
10 #include "core/frame/FrameView.h" | 9 #include "core/frame/FrameView.h" |
11 #include "core/html/HTMLDocument.h" | 10 #include "core/html/HTMLDocument.h" |
12 #include "core/html/HTMLHeadElement.h" | 11 #include "core/html/HTMLHeadElement.h" |
13 #include "core/html/HTMLMetaElement.h" | 12 #include "core/html/HTMLMetaElement.h" |
14 #include "core/testing/DummyPageHolder.h" | 13 #include "core/testing/DummyPageHolder.h" |
15 #include "core/testing/NullExecutionContext.h" | 14 #include "core/testing/NullExecutionContext.h" |
16 #include "platform/weborigin/KURL.h" | 15 #include "platform/weborigin/KURL.h" |
17 #include "platform/weborigin/SecurityOrigin.h" | 16 #include "platform/weborigin/SecurityOrigin.h" |
18 #include "public/platform/WebTrialTokenValidator.h" | 17 #include "public/platform/WebTrialTokenValidator.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 { | 224 { |
226 bool isOriginEnabled = isFeatureEnabledWithoutErrorMessage( | 225 bool isOriginEnabled = isFeatureEnabledWithoutErrorMessage( |
227 kFrobulateEnabledOriginUnsecure, | 226 kFrobulateEnabledOriginUnsecure, |
228 kFrobulateFeatureName, | 227 kFrobulateFeatureName, |
229 kGoodToken); | 228 kGoodToken); |
230 EXPECT_FALSE(isOriginEnabled); | 229 EXPECT_FALSE(isOriginEnabled); |
231 EXPECT_EQ(0, tokenValidator()->callCount()); | 230 EXPECT_EQ(0, tokenValidator()->callCount()); |
232 } | 231 } |
233 | 232 |
234 } // namespace blink | 233 } // namespace blink |
OLD | NEW |