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

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

Issue 1174283002: Fix unit test style in Source/web/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove static 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/web/tests/TopControlsTest.cpp ('k') | Source/web/tests/ViewportTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/TouchActionTest.cpp
diff --git a/Source/web/tests/TouchActionTest.cpp b/Source/web/tests/TouchActionTest.cpp
index 23d0d7e37c80e25d4033a39d588488669d28d66a..81a940ec822a3b9964981638d0ecfc6908a47b76 100644
--- a/Source/web/tests/TouchActionTest.cpp
+++ b/Source/web/tests/TouchActionTest.cpp
@@ -55,13 +55,11 @@
#include "public/web/WebWidgetClient.h"
#include "web/WebViewImpl.h"
#include "web/tests/FrameTestHelpers.h"
-
#include <gtest/gtest.h>
-using namespace blink;
using blink::testing::runPendingTasks;
-namespace {
+namespace blink {
class TouchActionTrackingWebViewClient : public FrameTestHelpers::TestWebViewClient {
public:
@@ -72,7 +70,7 @@ public:
}
// WebWidgetClient methods
- virtual void setTouchAction(WebTouchAction touchAction)
+ void setTouchAction(WebTouchAction touchAction) override
{
m_actionSetCount++;
m_action = touchAction;
@@ -111,7 +109,7 @@ public:
URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL), "touch-action-tests.js");
}
- virtual void TearDown()
+ void TearDown() override
{
Platform::current()->unitTestSupport()->unregisterAllMockedURLs();
}
@@ -346,4 +344,4 @@ TEST_F(TouchActionTest, Pan)
runTouchActionTest("touch-action-pan.html");
}
-}
+} // namespace blink
« no previous file with comments | « Source/web/tests/TopControlsTest.cpp ('k') | Source/web/tests/ViewportTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698