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

Unified Diff: Source/web/tests/WebDocumentTest.cpp

Issue 545123002: Cleanup namespace usage in Source/web/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/web/tests/ViewportTest.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebDocumentTest.cpp
diff --git a/Source/web/tests/WebDocumentTest.cpp b/Source/web/tests/WebDocumentTest.cpp
index 1559793ec31cda69e33ed439096386ddae1eab09..a14858f2e8d7d616e65562543c5b395b9b6bd16a 100644
--- a/Source/web/tests/WebDocumentTest.cpp
+++ b/Source/web/tests/WebDocumentTest.cpp
@@ -16,19 +16,13 @@
#include "core/testing/URLTestHelpers.h"
#include "platform/graphics/Color.h"
#include "web/tests/FrameTestHelpers.h"
-
#include <gtest/gtest.h>
-using namespace blink;
-using blink::Color;
-using blink::Document;
-using blink::HTMLElement;
-using blink::RenderStyle;
+namespace {
+
using blink::FrameTestHelpers::WebViewHelper;
using blink::URLTestHelpers::toKURL;
-using blink::WebDocument;
-
-namespace {
+using namespace blink;
TEST(WebDocumentTest, InsertStyleSheet)
{
@@ -51,7 +45,7 @@ TEST(WebDocumentTest, InsertStyleSheet)
ASSERT(style);
// Inserted stylesheet not yet applied.
- ASSERT_EQ(Color(0, 0, 0), style->visitedDependentColor(blink::CSSPropertyColor));
+ ASSERT_EQ(Color(0, 0, 0), style->visitedDependentColor(CSSPropertyColor));
// Apply inserted stylesheet.
coreDoc->updateRenderTreeIfNeeded();
@@ -60,7 +54,7 @@ TEST(WebDocumentTest, InsertStyleSheet)
ASSERT(style);
// Inserted stylesheet applied.
- ASSERT_EQ(Color(0, 128, 0), style->visitedDependentColor(blink::CSSPropertyColor));
+ ASSERT_EQ(Color(0, 128, 0), style->visitedDependentColor(CSSPropertyColor));
}
TEST(WebDocumentTest, BeginExitTransition)
@@ -88,7 +82,7 @@ TEST(WebDocumentTest, BeginExitTransition)
RenderStyle* bodyStyle = bodyElement->renderStyle();
ASSERT(bodyStyle);
// The transition_exit.css stylesheet should not have been applied at this point.
- ASSERT_EQ(Color(0, 0, 0), bodyStyle->visitedDependentColor(blink::CSSPropertyColor));
+ ASSERT_EQ(Color(0, 0, 0), bodyStyle->visitedDependentColor(CSSPropertyColor));
frame->document().beginExitTransition("#foo");
@@ -104,7 +98,7 @@ TEST(WebDocumentTest, BeginExitTransition)
// The stylesheet should now have been applied.
bodyStyle = bodyElement->renderStyle();
ASSERT(bodyStyle);
- ASSERT_EQ(Color(0, 128, 0), bodyStyle->visitedDependentColor(blink::CSSPropertyColor));
+ ASSERT_EQ(Color(0, 128, 0), bodyStyle->visitedDependentColor(CSSPropertyColor));
}
}
« no previous file with comments | « Source/web/tests/ViewportTest.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698