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

Unified Diff: base/test/test_file_util_linux.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « base/test/test_file_util_android.cc ('k') | base/test/test_file_util_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_file_util_linux.cc
diff --git a/base/test/test_file_util_linux.cc b/base/test/test_file_util_linux.cc
deleted file mode 100644
index 0ef5c0a1571041da64665bbf1673f0cce268396d..0000000000000000000000000000000000000000
--- a/base/test/test_file_util_linux.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/test/test_file_util.h"
-
-#include <fcntl.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <unistd.h>
-
-#include "base/files/file_path.h"
-#include "base/files/scoped_file.h"
-
-namespace base {
-
-bool EvictFileFromSystemCache(const FilePath& file) {
- ScopedFD fd(open(file.value().c_str(), O_RDONLY));
- if (!fd.is_valid())
- return false;
- if (fdatasync(fd.get()) != 0)
- return false;
- if (posix_fadvise(fd.get(), 0, 0, POSIX_FADV_DONTNEED) != 0)
- return false;
- return true;
-}
-
-} // namespace base
« no previous file with comments | « base/test/test_file_util_android.cc ('k') | base/test/test_file_util_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698