aboutsummaryrefslogtreecommitdiffstats
path: root/brillo/http/http_form_data_unittest.cc
diff options
context:
space:
mode:
authorHidehiko Abe <hidehiko@google.com>2017-12-18 10:37:25 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-12-18 10:37:25 +0000
commit1552abdcdfa272e771a819e77bf250ce67c5007d (patch)
tree0509206f97501283e49b3a19abee98008a3cd72f /brillo/http/http_form_data_unittest.cc
parent76f2ea30c6a76fefff34cb18ee872ffa427ec145 (diff)
parentc75c1f294f97ffc108e62ed4460a3b9aad754719 (diff)
downloadplatform_external_libbrillo-1552abdcdfa272e771a819e77bf250ce67c5007d.tar.gz
platform_external_libbrillo-1552abdcdfa272e771a819e77bf250ce67c5007d.tar.bz2
platform_external_libbrillo-1552abdcdfa272e771a819e77bf250ce67c5007d.zip
libbrillo: Update libchrome APIS to r456626. am: 826000b528
am: c75c1f294f Change-Id: Ida34017e671599f602546de9f5905617b776bce5
Diffstat (limited to 'brillo/http/http_form_data_unittest.cc')
-rw-r--r--brillo/http/http_form_data_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/brillo/http/http_form_data_unittest.cc b/brillo/http/http_form_data_unittest.cc
index 842225d..34288d0 100644
--- a/brillo/http/http_form_data_unittest.cc
+++ b/brillo/http/http_form_data_unittest.cc
@@ -42,7 +42,7 @@ TEST(HttpFormData, FileFormField) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
std::string file_content{"text line1\ntext line2\n"};
- base::FilePath file_name = dir.path().Append("sample.txt");
+ base::FilePath file_name = dir.GetPath().Append("sample.txt");
ASSERT_EQ(file_content.size(),
static_cast<size_t>(base::WriteFile(
file_name, file_content.data(), file_content.size())));
@@ -70,12 +70,12 @@ TEST(HttpFormData, MultiPartFormField) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
std::string file1{"text line1\ntext line2\n"};
- base::FilePath filename1 = dir.path().Append("sample.txt");
+ base::FilePath filename1 = dir.GetPath().Append("sample.txt");
ASSERT_EQ(file1.size(),
static_cast<size_t>(
base::WriteFile(filename1, file1.data(), file1.size())));
std::string file2{"\x01\x02\x03\x04\x05"};
- base::FilePath filename2 = dir.path().Append("test.bin");
+ base::FilePath filename2 = dir.GetPath().Append("test.bin");
ASSERT_EQ(file2.size(),
static_cast<size_t>(
base::WriteFile(filename2, file2.data(), file2.size())));
@@ -145,12 +145,12 @@ TEST(HttpFormData, FormData) {
base::ScopedTempDir dir;
ASSERT_TRUE(dir.CreateUniqueTempDir());
std::string file1{"text line1\ntext line2\n"};
- base::FilePath filename1 = dir.path().Append("sample.txt");
+ base::FilePath filename1 = dir.GetPath().Append("sample.txt");
ASSERT_EQ(file1.size(),
static_cast<size_t>(
base::WriteFile(filename1, file1.data(), file1.size())));
std::string file2{"\x01\x02\x03\x04\x05"};
- base::FilePath filename2 = dir.path().Append("test.bin");
+ base::FilePath filename2 = dir.GetPath().Append("test.bin");
ASSERT_EQ(file2.size(),
static_cast<size_t>(
base::WriteFile(filename2, file2.data(), file2.size())));