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

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

Issue 100573002: Move directory creation functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
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 <cstdio> 5 #include <cstdio>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 master_->DebugValidate(); 203 master_->DebugValidate();
204 204
205 g_slaves.clear(); 205 g_slaves.clear();
206 } 206 }
207 207
208 // testing::Test 208 // testing::Test
209 virtual void SetUp() { 209 virtual void SetUp() {
210 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 210 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
211 211
212 history_dir_ = temp_dir_.path().AppendASCII("VisitedLinkTest"); 212 history_dir_ = temp_dir_.path().AppendASCII("VisitedLinkTest");
213 ASSERT_TRUE(file_util::CreateDirectory(history_dir_)); 213 ASSERT_TRUE(base::CreateDirectory(history_dir_));
214 214
215 visited_file_ = history_dir_.Append(FILE_PATH_LITERAL("VisitedLinks")); 215 visited_file_ = history_dir_.Append(FILE_PATH_LITERAL("VisitedLinks"));
216 } 216 }
217 217
218 virtual void TearDown() { 218 virtual void TearDown() {
219 ClearDB(); 219 ClearDB();
220 } 220 }
221 221
222 base::ScopedTempDir temp_dir_; 222 base::ScopedTempDir temp_dir_;
223 223
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 content::NOTIFICATION_RENDERER_PROCESS_CREATED, 765 content::NOTIFICATION_RENDERER_PROCESS_CREATED,
766 content::Source<content::RenderProcessHost>(&different_process_host), 766 content::Source<content::RenderProcessHost>(&different_process_host),
767 content::NotificationService::NoDetails()); 767 content::NotificationService::NoDetails());
768 WaitForCoalescense(); 768 WaitForCoalescense();
769 769
770 EXPECT_EQ(0, different_context.new_table_count()); 770 EXPECT_EQ(0, different_context.new_table_count());
771 771
772 } 772 }
773 773
774 } // namespace visitedlink 774 } // namespace visitedlink
OLDNEW
« no previous file with comments | « components/breakpad/tools/crash_service.cc ('k') | content/browser/dom_storage/dom_storage_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698