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

Unified Diff: components/bookmarks/browser/bookmark_node_data_unittest.cc

Issue 2317993003: //chrome/browser and //components A-E: 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
Index: components/bookmarks/browser/bookmark_node_data_unittest.cc
diff --git a/components/bookmarks/browser/bookmark_node_data_unittest.cc b/components/bookmarks/browser/bookmark_node_data_unittest.cc
index f27f94f146b2dea3547d55991ab74adfc5e349c1..881fa7bffabda4d15cae055937c873881c00433a 100644
--- a/components/bookmarks/browser/bookmark_node_data_unittest.cc
+++ b/components/bookmarks/browser/bookmark_node_data_unittest.cc
@@ -41,7 +41,9 @@ class BookmarkNodeDataTest : public testing::Test {
ui::Clipboard::DestroyClipboardForCurrentThread();
}
- const base::FilePath& GetProfilePath() const { return profile_dir_.path(); }
+ const base::FilePath& GetProfilePath() const {
+ return profile_dir_.GetPath();
+ }
BookmarkModel* model() { return model_.get(); }
@@ -134,7 +136,7 @@ TEST_F(BookmarkNodeDataTest, URL) {
// Make sure asking for the node with a different profile returns NULL.
base::ScopedTempDir other_profile_dir;
EXPECT_TRUE(other_profile_dir.CreateUniqueTempDir());
- EXPECT_TRUE(read_data.GetFirstNode(model(), other_profile_dir.path()) ==
+ EXPECT_TRUE(read_data.GetFirstNode(model(), other_profile_dir.GetPath()) ==
NULL);
// Writing should also put the URL and title on the clipboard.
@@ -183,7 +185,7 @@ TEST_F(BookmarkNodeDataTest, Folder) {
// A different profile should return NULL for the node.
base::ScopedTempDir other_profile_dir;
EXPECT_TRUE(other_profile_dir.CreateUniqueTempDir());
- EXPECT_TRUE(read_data.GetFirstNode(model(), other_profile_dir.path()) ==
+ EXPECT_TRUE(read_data.GetFirstNode(model(), other_profile_dir.GetPath()) ==
NULL);
}

Powered by Google App Engine
This is Rietveld 408576698