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

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

Issue 1091093006: Update {virtual,override} to follow C++11 style in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back out some webrtc files. Created 5 years, 8 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/gpu/gpu_process_host.cc ('k') | content/browser/plugin_process_host.cc » ('j') | 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 23 matching lines...) Expand all
34 net::URLRequestContext* request_context, 34 net::URLRequestContext* request_context,
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 OriginDBs GetOpenDatabasesForOrigin(const GURL& origin_url) const override;
45 const GURL& origin_url) const override;
46 MOCK_METHOD1(ForceClose, void(const GURL& origin_url)); 45 MOCK_METHOD1(ForceClose, void(const GURL& origin_url));
47 MOCK_METHOD0(ContextDestroyed, void()); 46 MOCK_METHOD0(ContextDestroyed, void());
48 MOCK_METHOD1(DatabaseDeleted, 47 MOCK_METHOD1(DatabaseDeleted,
49 void(const IndexedDBDatabase::Identifier& identifier)); 48 void(const IndexedDBDatabase::Identifier& identifier));
50 MOCK_CONST_METHOD1(GetConnectionCount, size_t(const GURL& origin_url)); 49 MOCK_CONST_METHOD1(GetConnectionCount, size_t(const GURL& origin_url));
51 50
52 MOCK_METHOD2(ReportOutstandingBlobs, 51 MOCK_METHOD2(ReportOutstandingBlobs,
53 void(const GURL& origin_url, bool blobs_outstanding)); 52 void(const GURL& origin_url, bool blobs_outstanding));
54 53
55 protected: 54 protected:
(...skipping 20 matching lines...) Expand all
76 bool first_time, 75 bool first_time,
77 leveldb::Status* s)); 76 leveldb::Status* s));
78 77
79 private: 78 private:
80 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBFactory); 79 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBFactory);
81 }; 80 };
82 81
83 } // namespace content 82 } // namespace content
84 83
85 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ 84 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698