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

Side by Side Diff: content/browser/quota/quota_temporary_storage_evictor_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 unified diff | Download patch
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 <list> 5 #include <list>
6 #include <map> 6 #include <map>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/message_loop/message_loop_proxy.h"
14 #include "base/run_loop.h" 13 #include "base/run_loop.h"
15 #include "content/public/test/mock_storage_client.h" 14 #include "content/public/test/mock_storage_client.h"
16 #include "storage/browser/quota/quota_manager.h" 15 #include "storage/browser/quota/quota_manager.h"
17 #include "storage/browser/quota/quota_temporary_storage_evictor.h" 16 #include "storage/browser/quota/quota_temporary_storage_evictor.h"
18 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
19 18
20 using storage::QuotaTemporaryStorageEvictor; 19 using storage::QuotaTemporaryStorageEvictor;
21 using storage::StorageType; 20 using storage::StorageType;
22 using storage::UsageAndQuota; 21 using storage::UsageAndQuota;
23 22
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 EXPECT_EQ(150 + 300, quota_eviction_handler()->GetUsage()); 402 EXPECT_EQ(150 + 300, quota_eviction_handler()->GetUsage());
404 403
405 EXPECT_EQ(0, statistics().num_errors_on_evicting_origin); 404 EXPECT_EQ(0, statistics().num_errors_on_evicting_origin);
406 EXPECT_EQ(0, statistics().num_errors_on_getting_usage_and_quota); 405 EXPECT_EQ(0, statistics().num_errors_on_getting_usage_and_quota);
407 EXPECT_EQ(2, statistics().num_evicted_origins); 406 EXPECT_EQ(2, statistics().num_evicted_origins);
408 EXPECT_EQ(1, statistics().num_eviction_rounds); 407 EXPECT_EQ(1, statistics().num_eviction_rounds);
409 EXPECT_EQ(0, statistics().num_skipped_eviction_rounds); 408 EXPECT_EQ(0, statistics().num_skipped_eviction_rounds);
410 } 409 }
411 410
412 } // namespace content 411 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/quota/quota_reservation_manager_unittest.cc ('k') | content/browser/quota/storage_monitor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698