Apply _RELATIVE relocations ahead of others.
[chromium-blink-merge.git] / content / browser / indexed_db / mock_indexed_db_database_callbacks.h
blob31a29645a25c33d1cbfdf5846fc4fb4c4656133a
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_DATABASE_CALLBACKS_H_
6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_DATABASE_CALLBACKS_H_
8 #include "content/browser/indexed_db/indexed_db_callbacks.h"
9 #include "content/browser/indexed_db/indexed_db_connection.h"
11 namespace content {
13 class MockIndexedDBDatabaseCallbacks : public IndexedDBDatabaseCallbacks {
14 public:
15 MockIndexedDBDatabaseCallbacks();
17 void OnVersionChange(int64 old_version, int64 new_version) override {}
18 void OnForcedClose() override;
19 void OnAbort(int64 transaction_id,
20 const IndexedDBDatabaseError& error) override;
21 void OnComplete(int64 transaction_id) override {}
23 bool abort_called() const { return abort_called_; }
24 bool forced_close_called() const { return forced_close_called_; }
26 private:
27 ~MockIndexedDBDatabaseCallbacks() override {}
29 bool abort_called_;
30 bool forced_close_called_;
32 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBDatabaseCallbacks);
35 } // namespace content
37 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_DATABASE_CALLBACKS_H_