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

Side by Side Diff: components/visitedlink/test/visitedlink_unittest.cc

Issue 2321453002: c/browser, c/common, components S-W: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <cstdio> 8 #include <cstdio>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 master_->DebugValidate(); 226 master_->DebugValidate();
227 227
228 g_slaves.clear(); 228 g_slaves.clear();
229 } 229 }
230 230
231 // testing::Test 231 // testing::Test
232 void SetUp() override { 232 void SetUp() override {
233 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 233 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
234 234
235 history_dir_ = temp_dir_.path().AppendASCII("VisitedLinkTest"); 235 history_dir_ = temp_dir_.GetPath().AppendASCII("VisitedLinkTest");
236 ASSERT_TRUE(base::CreateDirectory(history_dir_)); 236 ASSERT_TRUE(base::CreateDirectory(history_dir_));
237 237
238 visited_file_ = history_dir_.Append(FILE_PATH_LITERAL("VisitedLinks")); 238 visited_file_ = history_dir_.Append(FILE_PATH_LITERAL("VisitedLinks"));
239 } 239 }
240 240
241 void TearDown() override { ClearDB(); } 241 void TearDown() override { ClearDB(); }
242 242
243 base::ScopedTempDir temp_dir_; 243 base::ScopedTempDir temp_dir_;
244 244
245 // Filenames for the services; 245 // Filenames for the services;
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 // Waiting complete loading the table. 882 // Waiting complete loading the table.
883 content::RunAllBlockingPoolTasksUntilIdle(); 883 content::RunAllBlockingPoolTasksUntilIdle();
884 884
885 WaitForCoalescence(); 885 WaitForCoalescence();
886 886
887 // After load table expect completely reset event. 887 // After load table expect completely reset event.
888 EXPECT_EQ(1, context()->completely_reset_event_count()); 888 EXPECT_EQ(1, context()->completely_reset_event_count());
889 } 889 }
890 890
891 } // namespace visitedlink 891 } // namespace visitedlink
OLDNEW
« no previous file with comments | « components/url_formatter/url_fixer_unittest.cc ('k') | components/webdata/common/web_database_migration_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698