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

Unified Diff: content/child/indexed_db/webidbcursor_impl_unittest.cc

Issue 1262253004: Let IPC::SyncMessageFilter take advantage of thread-safe Send. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: content/child/indexed_db/webidbcursor_impl_unittest.cc
diff --git a/content/child/indexed_db/webidbcursor_impl_unittest.cc b/content/child/indexed_db/webidbcursor_impl_unittest.cc
index a21babd8b8c20e063eaa3819dfd319bf0bff25d8..29c1f47567c92f5c5712c5b8fd26506d9369b676 100644
--- a/content/child/indexed_db/webidbcursor_impl_unittest.cc
+++ b/content/child/indexed_db/webidbcursor_impl_unittest.cc
@@ -10,7 +10,7 @@
#include "content/child/indexed_db/webidbcursor_impl.h"
#include "content/child/thread_safe_sender.h"
#include "content/common/indexed_db/indexed_db_key.h"
-#include "ipc/ipc_sync_message_filter.h"
+#include "content/test/test_thread_safe_sender.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/platform/WebData.h"
#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h"
@@ -121,9 +121,8 @@ class WebIDBCursorImplTest : public testing::Test {
public:
WebIDBCursorImplTest() {
null_key_.assignNull();
- sync_message_filter_ = new IPC::SyncMessageFilter(NULL);
- thread_safe_sender_ = new ThreadSafeSender(
- base::ThreadTaskRunnerHandle::Get(), sync_message_filter_.get());
+ thread_safe_sender_ =
+ TestThreadSafeSender::Create(base::ThreadTaskRunnerHandle::Get());
dispatcher_ =
make_scoped_ptr(new MockDispatcher(thread_safe_sender_.get()));
}
@@ -135,8 +134,6 @@ class WebIDBCursorImplTest : public testing::Test {
scoped_ptr<MockDispatcher> dispatcher_;
private:
- scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
-
DISALLOW_COPY_AND_ASSIGN(WebIDBCursorImplTest);
};

Powered by Google App Engine
This is Rietveld 408576698