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

Side by Side Diff: third_party/WebKit/Source/web/tests/WebDocumentTest.cpp

Issue 1636873005: blink: Fix naming and const-ness of constants and non-constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants: indents Created 4 years, 11 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 "public/web/WebDocument.h" 5 #include "public/web/WebDocument.h"
6 6
7 #include "core/CSSPropertyNames.h" 7 #include "core/CSSPropertyNames.h"
8 #include "core/HTMLNames.h" 8 #include "core/HTMLNames.h"
9 #include "core/dom/NodeComputedStyle.h" 9 #include "core/dom/NodeComputedStyle.h"
10 #include "core/dom/StyleEngine.h" 10 #include "core/dom/StyleEngine.h"
11 #include "core/frame/LocalFrame.h" 11 #include "core/frame/LocalFrame.h"
12 #include "core/html/HTMLElement.h" 12 #include "core/html/HTMLElement.h"
13 #include "core/html/HTMLLinkElement.h" 13 #include "core/html/HTMLLinkElement.h"
14 #include "core/page/Page.h" 14 #include "core/page/Page.h"
15 #include "core/style/ComputedStyle.h" 15 #include "core/style/ComputedStyle.h"
16 #include "platform/RuntimeEnabledFeatures.h" 16 #include "platform/RuntimeEnabledFeatures.h"
17 #include "platform/graphics/Color.h" 17 #include "platform/graphics/Color.h"
18 #include "platform/testing/URLTestHelpers.h" 18 #include "platform/testing/URLTestHelpers.h"
19 #include "platform/weborigin/SchemeRegistry.h" 19 #include "platform/weborigin/SchemeRegistry.h"
20 #include "platform/weborigin/SecurityOrigin.h" 20 #include "platform/weborigin/SecurityOrigin.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "web/tests/FrameTestHelpers.h" 22 #include "web/tests/FrameTestHelpers.h"
23 23
24 namespace blink { 24 namespace blink {
25 25
26 using blink::FrameTestHelpers::WebViewHelper; 26 using blink::FrameTestHelpers::WebViewHelper;
27 using blink::URLTestHelpers::toKURL; 27 using blink::URLTestHelpers::toKURL;
28 28
29 const char* kDefaultOrigin = "https://example.test/"; 29 const char kDefaultOrigin[] = "https://example.test/";
30 const char* kManifestDummyFilePath = "manifest-dummy.html"; 30 const char kManifestDummyFilePath[] = "manifest-dummy.html";
31 31
32 class WebDocumentTest : public ::testing::Test { 32 class WebDocumentTest : public ::testing::Test {
33 protected: 33 protected:
34 static void SetUpTestCase(); 34 static void SetUpTestCase();
35 35
36 void loadURL(const std::string& url); 36 void loadURL(const std::string& url);
37 Document* topDocument() const; 37 Document* topDocument() const;
38 WebDocument topWebDocument() const; 38 WebDocument topWebDocument() const;
39 39
40 WebViewHelper m_webViewHelper; 40 WebViewHelper m_webViewHelper;
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 load(nestedOriginAInOriginB); 318 load(nestedOriginAInOriginB);
319 319
320 SchemeRegistry::registerURLSchemeAsFirstPartyWhenTopLevel("http"); 320 SchemeRegistry::registerURLSchemeAsFirstPartyWhenTopLevel("http");
321 321
322 ASSERT_EQ(toOriginA(nestedOriginAInOriginB), topDocument()->firstPartyForCoo kies()); 322 ASSERT_EQ(toOriginA(nestedOriginAInOriginB), topDocument()->firstPartyForCoo kies());
323 ASSERT_EQ(toOriginA(nestedOriginAInOriginB), nestedDocument()->firstPartyFor Cookies()); 323 ASSERT_EQ(toOriginA(nestedOriginAInOriginB), nestedDocument()->firstPartyFor Cookies());
324 ASSERT_EQ(toOriginA(nestedOriginAInOriginB), nestedNestedDocument()->firstPa rtyForCookies()); 324 ASSERT_EQ(toOriginA(nestedOriginAInOriginB), nestedNestedDocument()->firstPa rtyForCookies());
325 } 325 }
326 326
327 } // namespace blink 327 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698