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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 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/browser/indexed_db/mock_indexed_db_change_handler.cc
diff --git a/content/browser/indexed_db/mock_indexed_db_change_handler.cc b/content/browser/indexed_db/mock_indexed_db_change_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f25e6b1922e68199a08b5e6bc4188076541036d8
--- /dev/null
+++ b/content/browser/indexed_db/mock_indexed_db_change_handler.cc
@@ -0,0 +1,30 @@
+// Copyright 2013 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_indexed_db_change_handler.h"
+
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace content {
+
+MockIndexedDBChangeHandler::MockIndexedDBChangeHandler()
+ : abort_called_(false), forced_close_called_(false) {}
+
+MockIndexedDBChangeHandler::~MockIndexedDBChangeHandler() = default;
+
+void MockIndexedDBChangeHandler::OnForcedClose() {
+ forced_close_called_ = true;
+}
+
+void MockIndexedDBChangeHandler::OnAbort(int64_t transaction_id,
+ const IndexedDBDatabaseError& error) {
+ abort_called_ = true;
+}
+
+void MockIndexedDBChangeHandler::SetConnection(
+ base::WeakPtr<IndexedDBConnection> connection) {
+ connection_ = connection;
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698