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

Side by Side Diff: content/browser/indexed_db/mock_indexed_db_callbacks.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_CALLBACKS_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_CALLBACKS_H_
6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_CALLBACKS_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_CALLBACKS_H_
7 7
8 #include <stdint.h>
9
8 #include <vector> 10 #include <vector>
9 11
12 #include "base/macros.h"
10 #include "content/browser/indexed_db/indexed_db_callbacks.h" 13 #include "content/browser/indexed_db/indexed_db_callbacks.h"
11 #include "content/browser/indexed_db/indexed_db_connection.h" 14 #include "content/browser/indexed_db/indexed_db_connection.h"
12 15
13 namespace content { 16 namespace content {
14 17
15 class MockIndexedDBCallbacks : public IndexedDBCallbacks { 18 class MockIndexedDBCallbacks : public IndexedDBCallbacks {
16 public: 19 public:
17 MockIndexedDBCallbacks(); 20 MockIndexedDBCallbacks();
18 explicit MockIndexedDBCallbacks(bool expect_connection); 21 explicit MockIndexedDBCallbacks(bool expect_connection);
19 22
20 void OnSuccess() override; 23 void OnSuccess() override;
21 void OnSuccess(int64 result) override; 24 void OnSuccess(int64_t result) override;
22 void OnSuccess(const std::vector<base::string16>& result) override; 25 void OnSuccess(const std::vector<base::string16>& result) override;
23 void OnSuccess(const IndexedDBKey& key) override; 26 void OnSuccess(const IndexedDBKey& key) override;
24 void OnSuccess(scoped_ptr<IndexedDBConnection> connection, 27 void OnSuccess(scoped_ptr<IndexedDBConnection> connection,
25 const IndexedDBDatabaseMetadata& metadata) override; 28 const IndexedDBDatabaseMetadata& metadata) override;
26 IndexedDBConnection* connection() { return connection_.get(); } 29 IndexedDBConnection* connection() { return connection_.get(); }
27 30
28 protected: 31 protected:
29 ~MockIndexedDBCallbacks() override; 32 ~MockIndexedDBCallbacks() override;
30 33
31 scoped_ptr<IndexedDBConnection> connection_; 34 scoped_ptr<IndexedDBConnection> connection_;
32 35
33 private: 36 private:
34 bool expect_connection_; 37 bool expect_connection_;
35 38
36 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBCallbacks); 39 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBCallbacks);
37 }; 40 };
38 41
39 } // namespace content 42 } // namespace content
40 43
41 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_CALLBACKS_H_ 44 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_CALLBACKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698