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

Unified Diff: chrome/browser/extensions/api/messaging/native_message_process_host_unittest.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/messaging/native_message_process_host_unittest.cc
diff --git a/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc b/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
index 8293095d0781315701233050f68e1656524bee85..b913e422d6fe423e0dd8db8b2da7edbe12b532cf 100644
--- a/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
+++ b/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
@@ -145,7 +145,7 @@ class NativeMessagingTest : public ::testing::Test,
base::FilePath CreateTempFileWithMessage(const std::string& message) {
base::FilePath filename;
- if (!base::CreateTemporaryFileInDir(temp_dir_.path(), &filename))
+ if (!base::CreateTemporaryFileInDir(temp_dir_.GetPath(), &filename))
return base::FilePath();
std::string message_with_header = FormatMessage(message);
@@ -171,7 +171,7 @@ class NativeMessagingTest : public ::testing::Test,
// Read a single message from a local file.
TEST_F(NativeMessagingTest, SingleSendMessageRead) {
- base::FilePath temp_output_file = temp_dir_.path().AppendASCII("output");
+ base::FilePath temp_output_file = temp_dir_.GetPath().AppendASCII("output");
base::FilePath temp_input_file = CreateTempFileWithMessage(kTestMessage);
ASSERT_FALSE(temp_input_file.empty());
@@ -198,7 +198,7 @@ TEST_F(NativeMessagingTest, SingleSendMessageRead) {
// Tests sending a single message. The message should get written to
// |temp_file| and should match the contents of single_message_request.msg.
TEST_F(NativeMessagingTest, SingleSendMessageWrite) {
- base::FilePath temp_output_file = temp_dir_.path().AppendASCII("output");
+ base::FilePath temp_output_file = temp_dir_.GetPath().AppendASCII("output");
base::File read_file;
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698