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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/MockWebIDBDatabase.h

Issue 2967013002: Be explicit about namespace testing to not mix it with blink::testing (Closed)
Patch Set: Dropped mojo parts that need another review. Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MockWebIDBDatabase_h 5 #ifndef MockWebIDBDatabase_h
6 #define MockWebIDBDatabase_h 6 #define MockWebIDBDatabase_h
7 7
8 #include "modules/indexeddb/IDBKey.h" 8 #include "modules/indexeddb/IDBKey.h"
9 #include "modules/indexeddb/IDBKeyRange.h" 9 #include "modules/indexeddb/IDBKeyRange.h"
10 #include "public/platform/modules/indexeddb/WebIDBDatabase.h" 10 #include "public/platform/modules/indexeddb/WebIDBDatabase.h"
11 #include "public/platform/modules/indexeddb/WebIDBKeyRange.h" 11 #include "public/platform/modules/indexeddb/WebIDBKeyRange.h"
12 #include <gmock/gmock.h> 12 #include <gmock/gmock.h>
13 #include <memory> 13 #include <memory>
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class MockWebIDBDatabase : public testing::StrictMock<WebIDBDatabase> { 17 class MockWebIDBDatabase : public ::testing::StrictMock<WebIDBDatabase> {
18 public: 18 public:
19 virtual ~MockWebIDBDatabase(); 19 virtual ~MockWebIDBDatabase();
20 20
21 static std::unique_ptr<MockWebIDBDatabase> Create(); 21 static std::unique_ptr<MockWebIDBDatabase> Create();
22 22
23 MOCK_METHOD5(CreateObjectStore, 23 MOCK_METHOD5(CreateObjectStore,
24 void(long long transaction_id, 24 void(long long transaction_id,
25 long long object_store_id, 25 long long object_store_id,
26 const WebString& name, 26 const WebString& name,
27 const WebIDBKeyPath&, 27 const WebIDBKeyPath&,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 WebIDBCallbacks*)); 129 WebIDBCallbacks*));
130 MOCK_METHOD1(AckReceivedBlobs, void(const WebVector<WebString>& uuids)); 130 MOCK_METHOD1(AckReceivedBlobs, void(const WebVector<WebString>& uuids));
131 131
132 private: 132 private:
133 MockWebIDBDatabase(); 133 MockWebIDBDatabase();
134 }; 134 };
135 135
136 } // namespace blink 136 } // namespace blink
137 137
138 #endif // MockWebIDBDatabase_h 138 #endif // MockWebIDBDatabase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698