- add sources.
[platform/framework/web/crosswalk.git] / src / content / browser / indexed_db / mock_indexed_db_callbacks.h
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.
4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_CALLBACKS_H_
6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_CALLBACKS_H_
7
8 #include "content/browser/indexed_db/indexed_db_callbacks.h"
9 #include "content/browser/indexed_db/indexed_db_connection.h"
10
11 namespace content {
12
13 class MockIndexedDBCallbacks : public IndexedDBCallbacks {
14  public:
15   MockIndexedDBCallbacks();
16
17   virtual void OnSuccess(scoped_ptr<IndexedDBConnection> connection,
18                          const IndexedDBDatabaseMetadata& metadata) OVERRIDE;
19
20   IndexedDBConnection* connection() { return connection_.get(); }
21
22  private:
23   virtual ~MockIndexedDBCallbacks();
24   scoped_ptr<IndexedDBConnection> connection_;
25
26   DISALLOW_COPY_AND_ASSIGN(MockIndexedDBCallbacks);
27 };
28
29 }  // namespace content
30
31 #endif  // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_CALLBACKS_H_