OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |