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

Unified Diff: third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp

Issue 2811993007: Worker: Remove cross-thread PostTask functions from WorkerLoaderProxy (Closed)
Patch Set: address review comments Created 3 years, 8 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
Index: third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
diff --git a/third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp b/third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
index 61b5b91bd9524fdc8a3019dac70082ab4eb10320..b979310f5ca99f5a640cb923d5a6f4b34b77d3f7 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
+++ b/third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
@@ -91,16 +91,16 @@ class ThreadedWorkletMessagingProxyForTest
public:
ThreadedWorkletMessagingProxyForTest(ExecutionContext* execution_context)
: ThreadedWorkletMessagingProxy(execution_context) {
- mock_worker_loader_proxy_provider_ =
- WTF::MakeUnique<MockWorkerLoaderProxyProvider>();
+ worker_loader_proxy_provider_ =
+ WTF::MakeUnique<WorkerLoaderProxyProvider>();
worker_thread_ = WTF::MakeUnique<ThreadedWorkletThreadForTest>(
- mock_worker_loader_proxy_provider_.get(), WorkletObjectProxy());
+ worker_loader_proxy_provider_.get(), WorkletObjectProxy());
ThreadedWorkletThreadForTest::EnsureSharedBackingThread();
}
~ThreadedWorkletMessagingProxyForTest() override {
worker_thread_->GetWorkerLoaderProxy()->DetachProvider(
- mock_worker_loader_proxy_provider_.get());
+ worker_loader_proxy_provider_.get());
worker_thread_->TerminateAndWait();
ThreadedWorkletThreadForTest::ClearSharedBackingThread();
};
@@ -136,8 +136,7 @@ class ThreadedWorkletMessagingProxyForTest
private:
friend class ThreadedWorkletTest;
- std::unique_ptr<MockWorkerLoaderProxyProvider>
- mock_worker_loader_proxy_provider_;
+ std::unique_ptr<WorkerLoaderProxyProvider> worker_loader_proxy_provider_;
RefPtr<SecurityOrigin> security_origin_;
};

Powered by Google App Engine
This is Rietveld 408576698