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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentTest.cpp

Issue 1845543002: Rename Heap to ThreadHeap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 /* 1 /*
2 * Copyright (c) 2014, Google Inc. All rights reserved. 2 * Copyright (c) 2014, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 namespace blink { 45 namespace blink {
46 46
47 class DocumentTest : public ::testing::Test { 47 class DocumentTest : public ::testing::Test {
48 protected: 48 protected:
49 void SetUp() override; 49 void SetUp() override;
50 50
51 #if ENABLE(OILPAN) 51 #if ENABLE(OILPAN)
52 void TearDown() override 52 void TearDown() override
53 { 53 {
54 Heap::collectAllGarbage(); 54 ThreadHeap::collectAllGarbage();
55 } 55 }
56 #endif 56 #endif
57 57
58 Document& document() const { return m_dummyPageHolder->document(); } 58 Document& document() const { return m_dummyPageHolder->document(); }
59 Page& page() const { return m_dummyPageHolder->page(); } 59 Page& page() const { return m_dummyPageHolder->page(); }
60 60
61 void setHtmlInnerHTML(const char*); 61 void setHtmlInnerHTML(const char*);
62 62
63 private: 63 private:
64 OwnPtr<DummyPageHolder> m_dummyPageHolder; 64 OwnPtr<DummyPageHolder> m_dummyPageHolder;
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 EXPECT_TRUE(document().getSecurityOrigin()->isPotentiallyTrustworthy()); 384 EXPECT_TRUE(document().getSecurityOrigin()->isPotentiallyTrustworthy());
385 385
386 origin = SecurityOrigin::createFromString("https://example.test"); 386 origin = SecurityOrigin::createFromString("https://example.test");
387 document().setSecurityOrigin(origin); 387 document().setSecurityOrigin(origin);
388 document().enforceSandboxFlags(mask); 388 document().enforceSandboxFlags(mask);
389 EXPECT_TRUE(document().getSecurityOrigin()->isUnique()); 389 EXPECT_TRUE(document().getSecurityOrigin()->isUnique());
390 EXPECT_TRUE(document().getSecurityOrigin()->isPotentiallyTrustworthy()); 390 EXPECT_TRUE(document().getSecurityOrigin()->isPotentiallyTrustworthy());
391 } 391 }
392 392
393 } // namespace blink 393 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698