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

Side by Side Diff: content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSERTEST_INDEXED_DB_CLASS_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_MOCK_BROWSERTEST_INDEXED_DB_CLASS_FACTORY_H_
6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_BROWSERTEST_INDEXED_DB_CLASS_FACTORY_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_BROWSERTEST_INDEXED_DB_CLASS_FACTORY_H_
7 7
8 #include <stdint.h>
9
8 #include <map> 10 #include <map>
9 #include <set> 11 #include <set>
10 12
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "content/browser/indexed_db/indexed_db_backing_store.h" 14 #include "content/browser/indexed_db/indexed_db_backing_store.h"
13 #include "content/browser/indexed_db/indexed_db_class_factory.h" 15 #include "content/browser/indexed_db/indexed_db_class_factory.h"
14 #include "content/browser/indexed_db/indexed_db_database.h" 16 #include "content/browser/indexed_db/indexed_db_database.h"
15 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" 17 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h"
16 18
17 namespace content { 19 namespace content {
(...skipping 19 matching lines...) Expand all
37 public: 39 public:
38 MockBrowserTestIndexedDBClassFactory(); 40 MockBrowserTestIndexedDBClassFactory();
39 ~MockBrowserTestIndexedDBClassFactory() override; 41 ~MockBrowserTestIndexedDBClassFactory() override;
40 42
41 IndexedDBDatabase* CreateIndexedDBDatabase( 43 IndexedDBDatabase* CreateIndexedDBDatabase(
42 const base::string16& name, 44 const base::string16& name,
43 IndexedDBBackingStore* backing_store, 45 IndexedDBBackingStore* backing_store,
44 IndexedDBFactory* factory, 46 IndexedDBFactory* factory,
45 const IndexedDBDatabase::Identifier& unique_identifier) override; 47 const IndexedDBDatabase::Identifier& unique_identifier) override;
46 IndexedDBTransaction* CreateIndexedDBTransaction( 48 IndexedDBTransaction* CreateIndexedDBTransaction(
47 int64 id, 49 int64_t id,
48 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks, 50 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks,
49 const std::set<int64>& scope, 51 const std::set<int64_t>& scope,
50 blink::WebIDBTransactionMode mode, 52 blink::WebIDBTransactionMode mode,
51 IndexedDBDatabase* db, 53 IndexedDBDatabase* db,
52 IndexedDBBackingStore::Transaction* backing_store_transaction) override; 54 IndexedDBBackingStore::Transaction* backing_store_transaction) override;
53 LevelDBTransaction* CreateLevelDBTransaction(LevelDBDatabase* db) override; 55 LevelDBTransaction* CreateLevelDBTransaction(LevelDBDatabase* db) override;
54 LevelDBIteratorImpl* CreateIteratorImpl( 56 LevelDBIteratorImpl* CreateIteratorImpl(
55 scoped_ptr<leveldb::Iterator> iterator) override; 57 scoped_ptr<leveldb::Iterator> iterator) override;
56 58
57 void FailOperation(FailClass failure_class, 59 void FailOperation(FailClass failure_class,
58 FailMethod failure_method, 60 FailMethod failure_method,
59 int fail_on_instance_num, 61 int fail_on_instance_num,
60 int fail_on_call_num); 62 int fail_on_call_num);
61 void Reset(); 63 void Reset();
62 64
63 private: 65 private:
64 FailClass failure_class_; 66 FailClass failure_class_;
65 FailMethod failure_method_; 67 FailMethod failure_method_;
66 std::map<FailClass, int> instance_count_; 68 std::map<FailClass, int> instance_count_;
67 std::map<FailClass, int> fail_on_instance_num_; 69 std::map<FailClass, int> fail_on_instance_num_;
68 std::map<FailClass, int> fail_on_call_num_; 70 std::map<FailClass, int> fail_on_call_num_;
69 bool only_trace_calls_; 71 bool only_trace_calls_;
70 }; 72 };
71 73
72 } // namespace content 74 } // namespace content
73 75
74 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_BROWSERTEST_INDEXED_DB_CLASS_FACTORY_ H_ 76 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_BROWSERTEST_INDEXED_DB_CLASS_FACTORY_ H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/list_set.h ('k') | content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698