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

Side by Side Diff: content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc

Issue 405433007: IndexedDB: Fix coding style issues c/o cpplint.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_transaction.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 #include <string> 5 #include <string>
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/indexed_db/leveldb/leveldb_iterator_impl.h" 8 #include "content/browser/indexed_db/leveldb/leveldb_iterator_impl.h"
9 #include "content/browser/indexed_db/leveldb/leveldb_transaction.h" 9 #include "content/browser/indexed_db/leveldb/leveldb_transaction.h"
10 #include "content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.h " 10 #include "content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.h "
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 virtual leveldb::Status Commit() OVERRIDE { 96 virtual leveldb::Status Commit() OVERRIDE {
97 commit_tracer_.log_call(); 97 commit_tracer_.log_call();
98 return LevelDBTransaction::Commit(); 98 return LevelDBTransaction::Commit();
99 } 99 }
100 100
101 private: 101 private:
102 virtual ~LevelDBTraceTansaction() {} 102 virtual ~LevelDBTraceTansaction() {}
103 103
104 const static std::string s_class_name; 104 static const std::string s_class_name;
105 105
106 FunctionTracer commit_tracer_; 106 FunctionTracer commit_tracer_;
107 FunctionTracer get_tracer_; 107 FunctionTracer get_tracer_;
108 }; 108 };
109 109
110 const std::string LevelDBTraceTansaction::s_class_name = "LevelDBTransaction"; 110 const std::string LevelDBTraceTansaction::s_class_name = "LevelDBTransaction";
111 111
112 class LevelDBTraceIteratorImpl : public LevelDBIteratorImpl { 112 class LevelDBTraceIteratorImpl : public LevelDBIteratorImpl {
113 public: 113 public:
114 LevelDBTraceIteratorImpl(scoped_ptr<leveldb::Iterator> iterator, int inst_num) 114 LevelDBTraceIteratorImpl(scoped_ptr<leveldb::Iterator> iterator, int inst_num)
(...skipping 30 matching lines...) Expand all
145 } 145 }
146 virtual base::StringPiece Key() const OVERRIDE { 146 virtual base::StringPiece Key() const OVERRIDE {
147 key_tracer_.log_call(); 147 key_tracer_.log_call();
148 return LevelDBIteratorImpl::Key(); 148 return LevelDBIteratorImpl::Key();
149 } 149 }
150 virtual base::StringPiece Value() const OVERRIDE { 150 virtual base::StringPiece Value() const OVERRIDE {
151 value_tracer_.log_call(); 151 value_tracer_.log_call();
152 return LevelDBIteratorImpl::Value(); 152 return LevelDBIteratorImpl::Value();
153 } 153 }
154 154
155 const static std::string s_class_name; 155 static const std::string s_class_name;
156 156
157 mutable FunctionTracer is_valid_tracer_; 157 mutable FunctionTracer is_valid_tracer_;
158 mutable FunctionTracer seek_to_last_tracer_; 158 mutable FunctionTracer seek_to_last_tracer_;
159 mutable FunctionTracer seek_tracer_; 159 mutable FunctionTracer seek_tracer_;
160 mutable FunctionTracer next_tracer_; 160 mutable FunctionTracer next_tracer_;
161 mutable FunctionTracer prev_tracer_; 161 mutable FunctionTracer prev_tracer_;
162 mutable FunctionTracer key_tracer_; 162 mutable FunctionTracer key_tracer_;
163 mutable FunctionTracer value_tracer_; 163 mutable FunctionTracer value_tracer_;
164 }; 164 };
165 165
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 void MockBrowserTestIndexedDBClassFactory::Reset() { 262 void MockBrowserTestIndexedDBClassFactory::Reset() {
263 failure_class_ = FAIL_CLASS_NOTHING; 263 failure_class_ = FAIL_CLASS_NOTHING;
264 failure_method_ = FAIL_METHOD_NOTHING; 264 failure_method_ = FAIL_METHOD_NOTHING;
265 instance_count_.clear(); 265 instance_count_.clear();
266 fail_on_instance_num_.clear(); 266 fail_on_instance_num_.clear();
267 fail_on_call_num_.clear(); 267 fail_on_call_num_.clear();
268 } 268 }
269 269
270 } // namespace content 270 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_transaction.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698