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

Unified Diff: Source/core/dom/DocumentTest.cpp

Issue 1171323003: Fix unit test style in core/{dom,editing,html}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: whitespace fix Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/DocumentMarkerControllerTest.cpp ('k') | Source/core/dom/MainThreadTaskRunnerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentTest.cpp
diff --git a/Source/core/dom/DocumentTest.cpp b/Source/core/dom/DocumentTest.cpp
index 73c488cb6b039f4c92efccf4e6b61c2f0e632ed5..3785d38ce25137cc32b3a2d0bbebb08354b6aa09 100644
--- a/Source/core/dom/DocumentTest.cpp
+++ b/Source/core/dom/DocumentTest.cpp
@@ -40,16 +40,14 @@
#include <gmock/gmock.h>
#include <gtest/gtest.h>
-using namespace blink;
-
-namespace {
+namespace blink {
class DocumentTest : public ::testing::Test {
protected:
- virtual void SetUp() override;
+ void SetUp() override;
#if ENABLE(OILPAN)
- virtual void TearDown() override
+ void TearDown() override
{
Heap::collectAllGarbage();
}
@@ -85,7 +83,10 @@ public:
return adoptPtrWillBeNoop(new MockDocumentVisibilityObserver(document));
}
- DEFINE_INLINE_VIRTUAL_TRACE() { }
+ DEFINE_INLINE_VIRTUAL_TRACE()
+ {
+ DocumentVisibilityObserver::trace(visitor);
+ }
MOCK_METHOD1(didChangeVisibilityState, void(PageVisibilityState));
@@ -354,4 +355,4 @@ TEST_F(DocumentTest, referrerPolicyParsing)
}
}
-} // unnamed namespace
+} // namespace blink
« no previous file with comments | « Source/core/dom/DocumentMarkerControllerTest.cpp ('k') | Source/core/dom/MainThreadTaskRunnerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698