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

Unified Diff: content/child/indexed_db/webidbcursor_impl_unittest.cc

Issue 671663002: Standardize usage of virtual/override/final in content/ (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/indexed_db/indexed_db_message_filter.h ('k') | content/child/npapi/np_channel_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/indexed_db/webidbcursor_impl_unittest.cc
diff --git a/content/child/indexed_db/webidbcursor_impl_unittest.cc b/content/child/indexed_db/webidbcursor_impl_unittest.cc
index 61a0c26cc83949b8201b6546a1fab272e06128c8..ab56cd2d330883598371748915f8c7b51fbc4cb8 100644
--- a/content/child/indexed_db/webidbcursor_impl_unittest.cc
+++ b/content/child/indexed_db/webidbcursor_impl_unittest.cc
@@ -38,39 +38,39 @@ class MockDispatcher : public IndexedDBDispatcher {
continue_calls_(0),
destroyed_cursor_id_(0) {}
- virtual void RequestIDBCursorPrefetch(int n,
- WebIDBCallbacks* callbacks,
- int32 ipc_cursor_id) override {
+ void RequestIDBCursorPrefetch(int n,
+ WebIDBCallbacks* callbacks,
+ int32 ipc_cursor_id) override {
++prefetch_calls_;
last_prefetch_count_ = n;
callbacks_.reset(callbacks);
}
- virtual void RequestIDBCursorPrefetchReset(int used_prefetches,
- int unused_prefetches,
- int32 ipc_cursor_id) override {
+ void RequestIDBCursorPrefetchReset(int used_prefetches,
+ int unused_prefetches,
+ int32 ipc_cursor_id) override {
++reset_calls_;
last_used_count_ = used_prefetches;
}
- virtual void RequestIDBCursorAdvance(unsigned long count,
- WebIDBCallbacks* callbacks,
- int32 ipc_cursor_id,
- int64 transaction_id) override {
+ void RequestIDBCursorAdvance(unsigned long count,
+ WebIDBCallbacks* callbacks,
+ int32 ipc_cursor_id,
+ int64 transaction_id) override {
++advance_calls_;
callbacks_.reset(callbacks);
}
- virtual void RequestIDBCursorContinue(const IndexedDBKey& key,
- const IndexedDBKey& primary_key,
- WebIDBCallbacks* callbacks,
- int32 ipc_cursor_id,
- int64 transaction_id) override {
+ void RequestIDBCursorContinue(const IndexedDBKey& key,
+ const IndexedDBKey& primary_key,
+ WebIDBCallbacks* callbacks,
+ int32 ipc_cursor_id,
+ int64 transaction_id) override {
++continue_calls_;
callbacks_.reset(callbacks);
}
- virtual void CursorDestroyed(int32 ipc_cursor_id) override {
+ void CursorDestroyed(int32 ipc_cursor_id) override {
destroyed_cursor_id_ = ipc_cursor_id;
}
« no previous file with comments | « content/child/indexed_db/indexed_db_message_filter.h ('k') | content/child/npapi/np_channel_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698