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

Unified Diff: content/browser/quota/storage_monitor_unittest.cc

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 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
Index: content/browser/quota/storage_monitor_unittest.cc
diff --git a/content/browser/quota/storage_monitor_unittest.cc b/content/browser/quota/storage_monitor_unittest.cc
index 78599de7472537359114d949d053fb5118c7ae8a..0edd49eb60dada42406bbe4b7c0e76393bbb879f 100644
--- a/content/browser/quota/storage_monitor_unittest.cc
+++ b/content/browser/quota/storage_monitor_unittest.cc
@@ -5,9 +5,8 @@
#include <vector>
#include "base/files/scoped_temp_dir.h"
-#include "base/message_loop/message_loop.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/run_loop.h"
+#include "base/thread_task_runner_handle.h"
#include "content/public/test/mock_special_storage_policy.h"
#include "content/public/test/mock_storage_client.h"
#include "net/base/net_util.h"
@@ -63,17 +62,15 @@ class MockObserver : public StorageObserver {
class UsageMockQuotaManager : public QuotaManager {
public:
UsageMockQuotaManager(SpecialStoragePolicy* special_storage_policy)
- : QuotaManager(
- false,
- base::FilePath(),
- base::MessageLoopProxy::current().get(),
- base::MessageLoopProxy::current().get(),
- special_storage_policy),
+ : QuotaManager(false,
+ base::FilePath(),
+ base::ThreadTaskRunnerHandle::Get().get(),
+ base::ThreadTaskRunnerHandle::Get().get(),
+ special_storage_policy),
callback_usage_(0),
callback_quota_(0),
callback_status_(kQuotaStatusOk),
- initialized_(false) {
- }
+ initialized_(false) {}
void SetCallbackParams(int64 usage, int64 quota, QuotaStatusCode status) {
initialized_ = true;
@@ -649,11 +646,8 @@ class StorageMonitorIntegrationTest : public testing::Test {
ASSERT_TRUE(data_dir_.CreateUniqueTempDir());
storage_policy_ = new MockSpecialStoragePolicy();
quota_manager_ = new QuotaManager(
- false,
- data_dir_.path(),
- base::MessageLoopProxy::current().get(),
- base::MessageLoopProxy::current().get(),
- storage_policy_.get());
+ false, data_dir_.path(), base::ThreadTaskRunnerHandle::Get().get(),
+ base::ThreadTaskRunnerHandle::Get().get(), storage_policy_.get());
client_ = new MockStorageClient(quota_manager_->proxy(),
NULL,
« no previous file with comments | « content/browser/quota/quota_temporary_storage_evictor_unittest.cc ('k') | content/browser/quota/usage_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698