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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover_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 "chrome/browser/browsing_data/browsing_data_remover.h" 5 #include "chrome/browser/browsing_data/browsing_data_remover.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 return true; 547 return true;
548 } 548 }
549 return false; 549 return false;
550 } 550 }
551 551
552 void AddDOMStorageTestData() { 552 void AddDOMStorageTestData() {
553 // Note: This test depends on details of how the dom_storage library 553 // Note: This test depends on details of how the dom_storage library
554 // stores data in the host file system. 554 // stores data in the host file system.
555 base::FilePath storage_path = 555 base::FilePath storage_path =
556 profile_->GetPath().AppendASCII("Local Storage"); 556 profile_->GetPath().AppendASCII("Local Storage");
557 file_util::CreateDirectory(storage_path); 557 base::CreateDirectory(storage_path);
558 558
559 // Write some files. 559 // Write some files.
560 file_util::WriteFile(storage_path.Append(kDomStorageOrigin1), NULL, 0); 560 file_util::WriteFile(storage_path.Append(kDomStorageOrigin1), NULL, 0);
561 file_util::WriteFile(storage_path.Append(kDomStorageOrigin2), NULL, 0); 561 file_util::WriteFile(storage_path.Append(kDomStorageOrigin2), NULL, 0);
562 file_util::WriteFile(storage_path.Append(kDomStorageOrigin3), NULL, 0); 562 file_util::WriteFile(storage_path.Append(kDomStorageOrigin3), NULL, 0);
563 file_util::WriteFile(storage_path.Append(kDomStorageExt), NULL, 0); 563 file_util::WriteFile(storage_path.Append(kDomStorageExt), NULL, 0);
564 564
565 // Tweak their dates. 565 // Tweak their dates.
566 file_util::SetLastModifiedTime(storage_path.Append(kDomStorageOrigin1), 566 file_util::SetLastModifiedTime(storage_path.Append(kDomStorageOrigin1),
567 base::Time::Now()); 567 base::Time::Now());
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 EXPECT_CALL(*cryptohome_client, TpmAttestationDeleteKeys(_, _, _, _)) 1587 EXPECT_CALL(*cryptohome_client, TpmAttestationDeleteKeys(_, _, _, _))
1588 .WillOnce(WithArgs<3>(Invoke(FakeDBusCall))); 1588 .WillOnce(WithArgs<3>(Invoke(FakeDBusCall)));
1589 1589
1590 BlockUntilBrowsingDataRemoved( 1590 BlockUntilBrowsingDataRemoved(
1591 BrowsingDataRemover::EVERYTHING, 1591 BrowsingDataRemover::EVERYTHING,
1592 BrowsingDataRemover::REMOVE_CONTENT_LICENSES, false); 1592 BrowsingDataRemover::REMOVE_CONTENT_LICENSES, false);
1593 1593
1594 chromeos::DBusThreadManager::Shutdown(); 1594 chromeos::DBusThreadManager::Shutdown();
1595 } 1595 }
1596 #endif 1596 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698