Index: content/browser/indexed_db/mock_mojo_indexed_db_database_callbacks.cc |
diff --git a/content/browser/indexed_db/mock_mojo_indexed_db_database_callbacks.cc b/content/browser/indexed_db/mock_mojo_indexed_db_database_callbacks.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..db53b3f755007222051f5bb02ae78b8b760c8fda |
--- /dev/null |
+++ b/content/browser/indexed_db/mock_mojo_indexed_db_database_callbacks.cc |
@@ -0,0 +1,20 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/browser/indexed_db/mock_mojo_indexed_db_database_callbacks.h" |
+ |
+namespace content { |
+ |
+MockMojoIndexedDBDatabaseCallbacks::MockMojoIndexedDBDatabaseCallbacks() |
+ : binding_(this) {} |
+MockMojoIndexedDBDatabaseCallbacks::~MockMojoIndexedDBDatabaseCallbacks() {} |
+ |
+::indexed_db::mojom::DatabaseCallbacksAssociatedPtrInfo |
+MockMojoIndexedDBDatabaseCallbacks::CreateInterfacePtrAndBind() { |
+ ::indexed_db::mojom::DatabaseCallbacksAssociatedPtrInfo ptr_info; |
+ binding_.Bind(::mojo::MakeRequest(&ptr_info)); |
+ return ptr_info; |
+} |
+ |
+} // namespace content |