Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / safe_browsing / download_feedback_service_unittest.cc
index 808c798..577ba1e 100644 (file)
@@ -4,7 +4,9 @@
 
 #include "chrome/browser/safe_browsing/download_feedback_service.h"
 
-#include "base/file_util.h"
+#include <vector>
+
+#include "base/files/file_util.h"
 #include "base/files/scoped_temp_dir.h"
 #include "base/run_loop.h"
 #include "base/strings/string_number_conversions.h"
@@ -150,7 +152,7 @@ class DownloadFeedbackServiceTest : public testing::Test {
     base::FilePath upload_file_path(
         temp_dir_.path().AppendASCII("test file " + base::IntToString(n)));
     const std::string upload_file_data = "data";
-    int wrote = file_util::WriteFile(
+    int wrote = base::WriteFile(
         upload_file_path, upload_file_data.data(), upload_file_data.size());
     EXPECT_EQ(static_cast<int>(upload_file_data.size()), wrote);
     return upload_file_path;
@@ -163,6 +165,7 @@ class DownloadFeedbackServiceTest : public testing::Test {
   size_t num_feedbacks() const {
     return download_feedback_factory_.num_feedbacks();
   }
+
  protected:
   base::ScopedTempDir temp_dir_;
   content::TestBrowserThreadBundle thread_bundle_;
@@ -170,7 +173,6 @@ class DownloadFeedbackServiceTest : public testing::Test {
   scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
   scoped_refptr<net::TestURLRequestContextGetter> request_context_getter_;
   FakeDownloadFeedbackFactory download_feedback_factory_;
-
 };
 
 TEST_F(DownloadFeedbackServiceTest, MaybeStorePingsForDownload) {