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

Unified Diff: chrome/browser/extensions/api/image_writer_private/test_utils.cc

Issue 2314363002: extensions: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Comment addressed 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: chrome/browser/extensions/api/image_writer_private/test_utils.cc
diff --git a/chrome/browser/extensions/api/image_writer_private/test_utils.cc b/chrome/browser/extensions/api/image_writer_private/test_utils.cc
index 57753610fab3bade335d66ea3ab2eb0a8d725c2f..3b7ffbef270b91f3f0a6a0b675f5be313937dbb2 100644
--- a/chrome/browser/extensions/api/image_writer_private/test_utils.cc
+++ b/chrome/browser/extensions/api/image_writer_private/test_utils.cc
@@ -160,10 +160,10 @@ void ImageWriterTestUtils::SetUp() {
void ImageWriterTestUtils::SetUp(bool is_browser_test) {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
- ASSERT_TRUE(base::CreateTemporaryFileInDir(temp_dir_.path(),
- &test_image_path_));
- ASSERT_TRUE(base::CreateTemporaryFileInDir(temp_dir_.path(),
- &test_device_path_));
+ ASSERT_TRUE(
+ base::CreateTemporaryFileInDir(temp_dir_.GetPath(), &test_image_path_));
+ ASSERT_TRUE(
+ base::CreateTemporaryFileInDir(temp_dir_.GetPath(), &test_device_path_));
ASSERT_TRUE(FillFile(test_image_path_, kImagePattern, kTestFileSize));
ASSERT_TRUE(FillFile(test_device_path_, kDevicePattern, kTestFileSize));
@@ -217,7 +217,7 @@ void ImageWriterTestUtils::TearDown() {
}
const base::FilePath& ImageWriterTestUtils::GetTempDir() {
- return temp_dir_.path();
+ return temp_dir_.GetPath();
}
const base::FilePath& ImageWriterTestUtils::GetImagePath() {

Powered by Google App Engine
This is Rietveld 408576698