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

Unified Diff: content/browser/indexed_db/mock_mojo_indexed_db_database_callbacks.cc

Issue 2784003002: [IndexedDB] Mojo testing harness. (Closed)
Patch Set: comments, removed thread flushing Created 3 years, 7 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/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

Powered by Google App Engine
This is Rietveld 408576698