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

Unified Diff: chrome/browser/net/sqlite_origin_bound_cert_store_unittest.cc

Issue 8573031: base::Bind fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed net_unittest Created 9 years, 1 month 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
Index: chrome/browser/net/sqlite_origin_bound_cert_store_unittest.cc
diff --git a/chrome/browser/net/sqlite_origin_bound_cert_store_unittest.cc b/chrome/browser/net/sqlite_origin_bound_cert_store_unittest.cc
index 1b68962deb5026e9544d578b23025fa4b69cd747..476839544fb3bcf17b352826e17e82dcf5c8cc1d 100644
--- a/chrome/browser/net/sqlite_origin_bound_cert_store_unittest.cc
+++ b/chrome/browser/net/sqlite_origin_bound_cert_store_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/bind.h"
#include "base/file_util.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop.h"
@@ -130,7 +131,7 @@ TEST_F(SQLiteOriginBoundCertStoreTest, TestFlush) {
}
// Call Flush() and wait until the DB thread is idle.
- store_->Flush(NULL);
+ store_->Flush(base::Closure());
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)));
@@ -166,7 +167,7 @@ TEST_F(SQLiteOriginBoundCertStoreTest, TestFlushCompletionCallback) {
// Callback shouldn't be invoked until we call Flush().
ASSERT_EQ(0, counter->callback_count());
- store_->Flush(NewRunnableMethod(counter.get(), &CallbackCounter::Callback));
+ store_->Flush(base::Bind(&CallbackCounter::Callback, counter.get()));
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(

Powered by Google App Engine
This is Rietveld 408576698