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

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

Issue 311263014: IndexedDB: Fix trivial cpplint.py errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 6 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/webidbcursor_impl.h ('k') | content/child/indexed_db/webidbdatabase_impl.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 a131096be23a606db278bbd6797a119d3b10e1a8..2ff4617c7810ce8ab6c174e30addfb513ba56c29 100644
--- a/content/child/indexed_db/webidbcursor_impl_unittest.cc
+++ b/content/child/indexed_db/webidbcursor_impl_unittest.cc
@@ -28,7 +28,7 @@ namespace {
class MockDispatcher : public IndexedDBDispatcher {
public:
- MockDispatcher(ThreadSafeSender* thread_safe_sender)
+ explicit MockDispatcher(ThreadSafeSender* thread_safe_sender)
: IndexedDBDispatcher(thread_safe_sender),
prefetch_calls_(0),
last_prefetch_count_(0),
@@ -103,7 +103,6 @@ class MockContinueCallbacks : public WebIDBCallbacks {
const WebIDBKey& primaryKey,
const WebData& value,
const WebVector<WebBlobInfo>& webBlobInfo) OVERRIDE {
-
if (key_)
*key_ = IndexedDBKeyBuilder::Build(key);
if (webBlobInfo_)
@@ -140,7 +139,6 @@ class WebIDBCursorImplTest : public testing::Test {
};
TEST_F(WebIDBCursorImplTest, PrefetchTest) {
-
const int64 transaction_id = 1;
{
WebIDBCursorImpl cursor(WebIDBCursorImpl::kInvalidCursorId,
@@ -164,7 +162,6 @@ TEST_F(WebIDBCursorImplTest, PrefetchTest) {
int last_prefetch_count = 0;
for (int repetitions = 0; repetitions < kPrefetchRepetitions;
++repetitions) {
-
// Initiate the prefetch
cursor.continueFunction(null_key_, new MockContinueCallbacks());
EXPECT_EQ(continue_calls, dispatcher_->continue_calls());
@@ -212,7 +209,6 @@ TEST_F(WebIDBCursorImplTest, PrefetchTest) {
}
TEST_F(WebIDBCursorImplTest, AdvancePrefetchTest) {
-
const int64 transaction_id = 1;
WebIDBCursorImpl cursor(WebIDBCursorImpl::kInvalidCursorId,
transaction_id,
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl.h ('k') | content/child/indexed_db/webidbdatabase_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698