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

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

Issue 2319513003: //[chrome/browser/]net: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 3 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 | « chrome/browser/net/file_downloader_unittest.cc ('k') | chrome/browser/net/sdch_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/quota_policy_channel_id_store_unittest.cc
diff --git a/chrome/browser/net/quota_policy_channel_id_store_unittest.cc b/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
index cbf00f61561ddb1f1d747ce8ffa2460f05ea59b6..83096f1bc4732ecdf7c9bbf35263defe38ffc80c 100644
--- a/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
+++ b/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
@@ -56,9 +56,8 @@ class QuotaPolicyChannelIDStoreTest : public testing::Test {
void SetUp() override {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
store_ = new QuotaPolicyChannelIDStore(
- temp_dir_.path().Append(kTestChannelIDFilename),
- base::ThreadTaskRunnerHandle::Get(),
- NULL);
+ temp_dir_.GetPath().Append(kTestChannelIDFilename),
+ base::ThreadTaskRunnerHandle::Get(), NULL);
std::vector<std::unique_ptr<net::DefaultChannelIDStore::ChannelID>>
channel_ids;
Load(&channel_ids);
@@ -96,9 +95,8 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) {
// Make sure we wait until the destructor has run.
base::RunLoop().RunUntilIdle();
store_ = new QuotaPolicyChannelIDStore(
- temp_dir_.path().Append(kTestChannelIDFilename),
- base::ThreadTaskRunnerHandle::Get(),
- NULL);
+ temp_dir_.GetPath().Append(kTestChannelIDFilename),
+ base::ThreadTaskRunnerHandle::Get(), NULL);
// Reload and test for persistence
Load(&channel_ids);
@@ -127,9 +125,8 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) {
base::RunLoop().RunUntilIdle();
channel_ids.clear();
store_ = new QuotaPolicyChannelIDStore(
- temp_dir_.path().Append(kTestChannelIDFilename),
- base::ThreadTaskRunnerHandle::Get(),
- NULL);
+ temp_dir_.GetPath().Append(kTestChannelIDFilename),
+ base::ThreadTaskRunnerHandle::Get(), NULL);
// Reload and check if the channel ID has been removed.
Load(&channel_ids);
@@ -160,9 +157,8 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPolicy) {
net::cookie_util::CookieOriginToURL("nonpersistent.com", true));
// Reload store, it should still have both channel IDs.
store_ = new QuotaPolicyChannelIDStore(
- temp_dir_.path().Append(kTestChannelIDFilename),
- base::ThreadTaskRunnerHandle::Get(),
- storage_policy);
+ temp_dir_.GetPath().Append(kTestChannelIDFilename),
+ base::ThreadTaskRunnerHandle::Get(), storage_policy);
Load(&channel_ids);
ASSERT_EQ(2U, channel_ids.size());
@@ -185,9 +181,8 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPolicy) {
base::RunLoop().RunUntilIdle();
channel_ids.clear();
store_ = new QuotaPolicyChannelIDStore(
- temp_dir_.path().Append(kTestChannelIDFilename),
- base::ThreadTaskRunnerHandle::Get(),
- NULL);
+ temp_dir_.GetPath().Append(kTestChannelIDFilename),
+ base::ThreadTaskRunnerHandle::Get(), NULL);
// Reload and check that the nonpersistent.com channel IDs have been removed.
Load(&channel_ids);
« no previous file with comments | « chrome/browser/net/file_downloader_unittest.cc ('k') | chrome/browser/net/sdch_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698