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

Unified Diff: Source/web/tests/CustomEventTest.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/ChromeClientImplTest.cpp ('k') | Source/web/tests/FrameLoaderClientImplTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/CustomEventTest.cpp
diff --git a/Source/web/tests/CustomEventTest.cpp b/Source/web/tests/CustomEventTest.cpp
index 7ac9520ae61e2cea78a8396d0cbfead9cd9f1c90..4e9c3adeb1e7143be29c67b70546a46d6cd654ca 100644
--- a/Source/web/tests/CustomEventTest.cpp
+++ b/Source/web/tests/CustomEventTest.cpp
@@ -46,21 +46,18 @@
#include "web/WebLocalFrameImpl.h"
#include "web/WebViewImpl.h"
#include "web/tests/FrameTestHelpers.h"
-
#include <gtest/gtest.h>
-using namespace blink;
-
-namespace {
+namespace blink {
class TestListener : public V8AbstractEventListener {
public:
- virtual bool operator==(const EventListener&)
+ bool operator==(const EventListener&) override
{
return true;
}
- virtual void handleEvent(ScriptState* scriptState, Event* event)
+ void handleEvent(ScriptState* scriptState, Event* event) override
{
EXPECT_EQ(event->type(), "blah");
@@ -82,7 +79,7 @@ private:
{
}
- virtual v8::Local<v8::Value> callListenerFunction(ScriptState*, v8::Local<v8::Value>, Event*)
+ v8::Local<v8::Value> callListenerFunction(ScriptState*, v8::Local<v8::Value>, Event*) override
{
ASSERT_NOT_REACHED();
return v8::Local<v8::Value>();
@@ -116,4 +113,4 @@ TEST(CustomEventTest, InitWithSerializedScriptValue)
Platform::current()->unitTestSupport()->unregisterAllMockedURLs();
}
-}
+} // namespace blink
« no previous file with comments | « Source/web/tests/ChromeClientImplTest.cpp ('k') | Source/web/tests/FrameLoaderClientImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698