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

Side by Side Diff: content/browser/storage_partition_impl_unittest.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 569
570 class StoragePartitionImplTest : public testing::Test { 570 class StoragePartitionImplTest : public testing::Test {
571 public: 571 public:
572 StoragePartitionImplTest() 572 StoragePartitionImplTest()
573 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP), 573 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP),
574 browser_context_(new TestBrowserContext()) {} 574 browser_context_(new TestBrowserContext()) {}
575 575
576 MockQuotaManager* GetMockManager() { 576 MockQuotaManager* GetMockManager() {
577 if (!quota_manager_.get()) { 577 if (!quota_manager_.get()) {
578 quota_manager_ = new MockQuotaManager( 578 quota_manager_ = new MockQuotaManager(
579 browser_context_->IsOffTheRecord(), 579 browser_context_->IsOffTheRecord(), browser_context_->GetPath(),
580 browser_context_->GetPath(), 580 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO).get(),
581 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO).get(), 581 BrowserThread::GetTaskRunnerForThread(BrowserThread::DB).get(),
582 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB).get(),
583 browser_context_->GetSpecialStoragePolicy()); 582 browser_context_->GetSpecialStoragePolicy());
584 } 583 }
585 return quota_manager_.get(); 584 return quota_manager_.get();
586 } 585 }
587 586
588 TestBrowserContext* browser_context() { 587 TestBrowserContext* browser_context() {
589 return browser_context_.get(); 588 return browser_context_.get();
590 } 589 }
591 590
592 private: 591 private:
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 CanonicalCookie::Create(url2, "A=B;domain=.example.com", now, options)); 1312 CanonicalCookie::Create(url2, "A=B;domain=.example.com", now, options));
1314 invalid_cookies.push_back(CanonicalCookie::Create(url3, "A=B", now, options)); 1313 invalid_cookies.push_back(CanonicalCookie::Create(url3, "A=B", now, options));
1315 1314
1316 for (const auto& cookie : valid_cookies) 1315 for (const auto& cookie : valid_cookies)
1317 EXPECT_TRUE(predicate.Run(*cookie)) << cookie->DebugString(); 1316 EXPECT_TRUE(predicate.Run(*cookie)) << cookie->DebugString();
1318 for (const auto& cookie : invalid_cookies) 1317 for (const auto& cookie : invalid_cookies)
1319 EXPECT_FALSE(predicate.Run(*cookie)) << cookie->DebugString(); 1318 EXPECT_FALSE(predicate.Run(*cookie)) << cookie->DebugString();
1320 } 1319 }
1321 1320
1322 } // namespace content 1321 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl_map.cc ('k') | content/browser/tracing/power_tracing_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698