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

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

Issue 602883003: Replacing the OVERRIDE with override and FINAL with final in content/browser/indexed_db (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « content/browser/indexed_db/mock_indexed_db_database_callbacks.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INDEXED_DB_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_
6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/browser/indexed_db/indexed_db_factory.h" 10 #include "content/browser/indexed_db/indexed_db_factory.h"
(...skipping 24 matching lines...) Expand all
35 scoped_refptr<IndexedDBCallbacks> callbacks, 35 scoped_refptr<IndexedDBCallbacks> callbacks,
36 const GURL& origin_url, 36 const GURL& origin_url,
37 const base::FilePath& data_directory)); 37 const base::FilePath& data_directory));
38 MOCK_METHOD1(HandleBackingStoreFailure, void(const GURL& origin_url)); 38 MOCK_METHOD1(HandleBackingStoreFailure, void(const GURL& origin_url));
39 MOCK_METHOD2(HandleBackingStoreCorruption, 39 MOCK_METHOD2(HandleBackingStoreCorruption,
40 void(const GURL& origin_url, 40 void(const GURL& origin_url,
41 const IndexedDBDatabaseError& error)); 41 const IndexedDBDatabaseError& error));
42 // The Android NDK implements a subset of STL, and the gtest templates can't 42 // The Android NDK implements a subset of STL, and the gtest templates can't
43 // deal with std::pair's. This means we can't use GoogleMock for this method 43 // deal with std::pair's. This means we can't use GoogleMock for this method
44 virtual OriginDBs GetOpenDatabasesForOrigin( 44 virtual OriginDBs GetOpenDatabasesForOrigin(
45 const GURL& origin_url) const OVERRIDE; 45 const GURL& origin_url) const override;
46 MOCK_METHOD1(ForceClose, void(const GURL& origin_url)); 46 MOCK_METHOD1(ForceClose, void(const GURL& origin_url));
47 MOCK_METHOD0(ContextDestroyed, void()); 47 MOCK_METHOD0(ContextDestroyed, void());
48 MOCK_METHOD1(DatabaseDeleted, 48 MOCK_METHOD1(DatabaseDeleted,
49 void(const IndexedDBDatabase::Identifier& identifier)); 49 void(const IndexedDBDatabase::Identifier& identifier));
50 MOCK_CONST_METHOD1(GetConnectionCount, size_t(const GURL& origin_url)); 50 MOCK_CONST_METHOD1(GetConnectionCount, size_t(const GURL& origin_url));
51 51
52 MOCK_METHOD2(ReportOutstandingBlobs, 52 MOCK_METHOD2(ReportOutstandingBlobs,
53 void(const GURL& origin_url, bool blobs_outstanding)); 53 void(const GURL& origin_url, bool blobs_outstanding));
54 54
55 protected: 55 protected:
(...skipping 20 matching lines...) Expand all
76 bool first_time, 76 bool first_time,
77 leveldb::Status* s)); 77 leveldb::Status* s));
78 78
79 private: 79 private:
80 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBFactory); 80 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBFactory);
81 }; 81 };
82 82
83 } // namespace content 83 } // namespace content
84 84
85 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ 85 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/mock_indexed_db_database_callbacks.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698