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

Side by Side Diff: Source/modules/compositorworker/CompositorWorkerManagerTest.cpp

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "modules/compositorworker/CompositorWorkerManager.h" 6 #include "modules/compositorworker/CompositorWorkerManager.h"
7 7
8 #include "bindings/core/v8/ScriptSourceCode.h" 8 #include "bindings/core/v8/ScriptSourceCode.h"
9 #include "core/inspector/ConsoleMessage.h" 9 #include "core/inspector/ConsoleMessage.h"
10 #include "core/testing/DummyPageHolder.h" 10 #include "core/testing/DummyPageHolder.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // A null WorkerObjectProxy, supplied when creating CompositorWorkerThreads. 57 // A null WorkerObjectProxy, supplied when creating CompositorWorkerThreads.
58 class TestCompositorWorkerObjectProxy : public WorkerObjectProxy { 58 class TestCompositorWorkerObjectProxy : public WorkerObjectProxy {
59 public: 59 public:
60 static PassOwnPtr<TestCompositorWorkerObjectProxy> create(ExecutionContext* context) 60 static PassOwnPtr<TestCompositorWorkerObjectProxy> create(ExecutionContext* context)
61 { 61 {
62 return adoptPtr(new TestCompositorWorkerObjectProxy(context)); 62 return adoptPtr(new TestCompositorWorkerObjectProxy(context));
63 } 63 }
64 64
65 // (Empty) WorkerReportingProxy implementation: 65 // (Empty) WorkerReportingProxy implementation:
66 virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL, int exceptionId) { } 66 virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL, int exceptionId) { }
67 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov erride { } 67 void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override { }
68 virtual void postMessageToPageInspector(const String&) override { } 68 void postMessageToPageInspector(const String&) override { }
69 virtual void postWorkerConsoleAgentEnabled() override { } 69 void postWorkerConsoleAgentEnabled() override { }
70 70
71 virtual void didEvaluateWorkerScript(bool success) override { } 71 void didEvaluateWorkerScript(bool success) override { }
72 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override { } 72 void workerGlobalScopeStarted(WorkerGlobalScope*) override { }
73 virtual void workerGlobalScopeClosed() override { } 73 void workerGlobalScopeClosed() override { }
74 virtual void workerThreadTerminated() override { } 74 void workerThreadTerminated() override { }
75 virtual void willDestroyWorkerGlobalScope() override { } 75 void willDestroyWorkerGlobalScope() override { }
76 private: 76 private:
77 TestCompositorWorkerObjectProxy(ExecutionContext* context) 77 TestCompositorWorkerObjectProxy(ExecutionContext* context)
78 : WorkerObjectProxy(context, nullptr) 78 : WorkerObjectProxy(context, nullptr)
79 { 79 {
80 } 80 }
81 }; 81 };
82 82
83 } // namespace 83 } // namespace
84 84
85 class CompositorWorkerManagerTest : public ::testing::Test { 85 class CompositorWorkerManagerTest : public ::testing::Test {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 v8::Isolate* secondIsolate = secondWorker->isolate(); 257 v8::Isolate* secondIsolate = secondWorker->isolate();
258 ASSERT(secondIsolate); 258 ASSERT(secondIsolate);
259 EXPECT_EQ(firstIsolate, secondIsolate); 259 EXPECT_EQ(firstIsolate, secondIsolate);
260 260
261 // Verify that the isolate can run some scripts correctly in the second work er. 261 // Verify that the isolate can run some scripts correctly in the second work er.
262 checkWorkerCanExecuteScript(secondWorker.get()); 262 checkWorkerCanExecuteScript(secondWorker.get());
263 secondWorker->terminateAndWait(); 263 secondWorker->terminateAndWait();
264 } 264 }
265 265
266 } // namespace blink 266 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698