Index: content/child/indexed_db/indexed_db_dispatcher_unittest.cc |
=================================================================== |
--- content/child/indexed_db/indexed_db_dispatcher_unittest.cc (revision 208777) |
+++ content/child/indexed_db/indexed_db_dispatcher_unittest.cc (working copy) |
@@ -3,9 +3,12 @@ |
// found in the LICENSE file. |
#include "base/memory/scoped_ptr.h" |
+#include "base/message_loop/message_loop_proxy.h" |
#include "base/values.h" |
#include "content/child/indexed_db/indexed_db_dispatcher.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 "testing/gtest/include/gtest/gtest.h" |
#include "third_party/WebKit/public/platform/WebData.h" |
#include "third_party/WebKit/public/platform/WebIDBCallbacks.h" |
@@ -43,8 +46,15 @@ |
const int64 transaction_id = 1; |
const int64 object_store_id = 2; |
+ scoped_refptr<base::MessageLoopProxy> message_loop_proxy( |
+ base::MessageLoopProxy::current()); |
+ scoped_refptr<IPC::SyncMessageFilter> sync_message_filter( |
+ new IPC::SyncMessageFilter(NULL)); |
+ scoped_refptr<ThreadSafeSender> thread_safe_sender(new ThreadSafeSender( |
+ message_loop_proxy, sync_message_filter)); |
+ |
MockCallbacks callbacks; |
- IndexedDBDispatcher dispatcher; |
+ IndexedDBDispatcher dispatcher(thread_safe_sender); |
IndexedDBKey key(0, WebIDBKey::NumberType); |
dispatcher.RequestIDBDatabasePut(ipc_dummy_id, |
transaction_id, |