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

Unified Diff: content/child/indexed_db/indexed_db_dispatcher_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/indexed_db_dispatcher_unittest.cc
diff --git a/content/child/indexed_db/indexed_db_dispatcher_unittest.cc b/content/child/indexed_db/indexed_db_dispatcher_unittest.cc
index 7e146e7b00b46bf37464f241f493bd99346f3510..b3690a402f92b91d3ce8408092506ee4ccbd9964 100644
--- a/content/child/indexed_db/indexed_db_dispatcher_unittest.cc
+++ b/content/child/indexed_db/indexed_db_dispatcher_unittest.cc
@@ -12,7 +12,7 @@
#include "content/common/indexed_db/indexed_db_key.h"
#include "content/common/indexed_db/indexed_db_key_range.h"
#include "content/common/indexed_db/indexed_db_messages.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/WebBlobInfo.h"
#include "third_party/WebKit/public/platform/WebData.h"
@@ -65,17 +65,13 @@ class MockDispatcher : public IndexedDBDispatcher {
class IndexedDBDispatcherTest : public testing::Test {
public:
IndexedDBDispatcherTest()
- : task_runner_(base::ThreadTaskRunnerHandle::Get()),
- sync_message_filter_(new IPC::SyncMessageFilter(NULL)),
- thread_safe_sender_(new ThreadSafeSender(task_runner_.get(),
- sync_message_filter_.get())) {}
+ : thread_safe_sender_(TestThreadSafeSender::Create(
+ base::ThreadTaskRunnerHandle::Get())) {}
void TearDown() override { blink::WebHeap::collectAllGarbageForTesting(); }
protected:
base::MessageLoop message_loop_;
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
private:

Powered by Google App Engine
This is Rietveld 408576698