switch to using android-base/file.h instead of android-base/test_utils.h

Test: compile
Bug: 119313545
Change-Id: I4f7ad84743e974b4b4d1d7256088f6c8b749a237
This commit is contained in:
Mark Salyzyn 2018-11-12 12:45:59 -08:00
parent e77298ce9f
commit 9f1cf25332
28 changed files with 11 additions and 30 deletions

View file

@ -28,7 +28,6 @@
#include <string>
#include <android-base/file.h>
#include <android-base/test_utils.h>
// All of these tests fail on Windows because they use the C Runtime open(),
// but the adb_io APIs expect file descriptors from adb_open(). This could

View file

@ -30,8 +30,8 @@
#include "sysdeps.h"
#include <android-base/file.h>
#include <android-base/macros.h>
#include <android-base/test_utils.h>
#ifdef _WIN32
static std::string subdir(const char* parent, const char* child) {

View file

@ -30,7 +30,6 @@
#include "android-base/file.h"
#include "android-base/stringprintf.h"
#include "android-base/strings.h"
#include "android-base/test_utils.h"
#include "client/file_sync_client.h"
#include "commandline.h"
#include "fastdeploy.h"

View file

@ -16,7 +16,7 @@
#include <string>
#include <android-base/test_utils.h>
#include <android-base/file.h>
#include <gtest/gtest.h>
#include "adb_utils.h"

View file

@ -18,7 +18,7 @@
#include "sysdeps.h"
#include <android-base/test_utils.h>
#include <android-base/file.h>
TEST(sysdeps_win32, adb_getenv) {
// Insert all test env vars before first call to adb_getenv() which will

View file

@ -24,8 +24,6 @@
#include <string>
#include "android-base/test_utils.h"
#if !defined(_WIN32)
#include <pwd.h>
#endif

View file

@ -25,7 +25,6 @@
#include <string>
#include "android-base/file.h"
#include "android-base/test_utils.h"
#include "android-base/unique_fd.h"
TEST(mapped_file, smoke) {

View file

@ -21,8 +21,8 @@
#include <fcntl.h>
#include <stdlib.h>
#include "android-base/file.h"
#include "android-base/macros.h"
#include "android-base/test_utils.h"
#include "android-base/unique_fd.h"
namespace android {

View file

@ -29,7 +29,6 @@
#include <android-base/chrono_utils.h>
#include <android-base/file.h>
#include <android-base/logging.h>
#include <android-base/test_utils.h>
#include <android-base/unique_fd.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>

View file

@ -20,10 +20,9 @@
#include <string>
#include <android-base/file.h>
#include <gtest/gtest.h>
#include "android-base/test_utils.h"
#include "libdebuggerd/open_files_list.h"
// Check that we can produce a list of open files for the current process, and

View file

@ -56,7 +56,6 @@
#include <android-base/parsenetaddress.h>
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
#include <android-base/test_utils.h>
#include <android-base/unique_fd.h>
#include <build/version.h>
#include <platform_tools_version.h>

View file

@ -16,8 +16,8 @@
#include "devices.h"
#include <android-base/file.h>
#include <android-base/scopeguard.h>
#include <android-base/test_utils.h>
#include <gtest/gtest.h>
#include "util.h"

View file

@ -17,7 +17,6 @@
#include <functional>
#include <android-base/file.h>
#include <android-base/test_utils.h>
#include <gtest/gtest.h>
#include "action.h"

View file

@ -20,7 +20,7 @@
#include <vector>
#include <android-base/test_utils.h>
#include <android-base/file.h>
#include <gtest/gtest.h>
#include "util.h"

View file

@ -16,7 +16,7 @@
#include "ueventd_parser.h"
#include <android-base/test_utils.h>
#include <android-base/file.h>
#include <gtest/gtest.h>
#include <private/android_filesystem_config.h>

View file

@ -27,7 +27,6 @@
#include <android-base/file.h>
#include <android-base/scopeguard.h>
#include <android-base/test_utils.h>
#include <gtest/gtest.h>
#include <selinux/android.h>
#include <selinux/label.h>

View file

@ -20,8 +20,8 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <android-base/file.h>
#include <android-base/stringprintf.h>
#include <android-base/test_utils.h>
#include <gtest/gtest.h>
using namespace std::literals::string_literals;

View file

@ -23,8 +23,8 @@
#include <string>
#include <android-base/file.h>
#include <android-base/stringprintf.h>
#include <android-base/test_utils.h>
#include <cutils/android_get_control_file.h>
#include <gtest/gtest.h>

View file

@ -22,7 +22,6 @@
#include <android-base/file.h>
#include <android-base/stringprintf.h>
#include <android-base/test_utils.h>
#include <gtest/gtest.h>
#include "../trace-dev.cpp"

View file

@ -24,7 +24,6 @@
#include <android-base/file.h>
#include <android-base/logging.h>
#include <android-base/test_utils.h>
#include <benchmark/benchmark.h>

View file

@ -30,7 +30,6 @@
#include <android-base/file.h>
#include <android-base/logging.h>
#include <android-base/test_utils.h>
using namespace std;
using namespace android::meminfo;

View file

@ -20,7 +20,7 @@
#include <unordered_map>
#include <android-base/test_utils.h>
#include <android-base/file.h>
#include <unwindstack/MapInfo.h>
#include <unwindstack/Memory.h>

View file

@ -18,7 +18,6 @@
#include <unistd.h>
#include <android-base/file.h>
#include <android-base/test_utils.h>
#include <gtest/gtest.h>

View file

@ -27,7 +27,6 @@
#include <vector>
#include <android-base/file.h>
#include <android-base/test_utils.h>
#include <gtest/gtest.h>
#include <unwindstack/Elf.h>

View file

@ -29,7 +29,6 @@
#include <vector>
#include <android-base/file.h>
#include <android-base/test_utils.h>
#include <gtest/gtest.h>
#include <unwindstack/Elf.h>

View file

@ -19,7 +19,6 @@
#include <android-base/file.h>
#include <android-base/stringprintf.h>
#include <android-base/test_utils.h>
#include <gtest/gtest.h>
#include <unwindstack/Maps.h>

View file

@ -19,7 +19,6 @@
#include <gtest/gtest.h>
#include <android-base/file.h>
#include <android-base/test_utils.h>
#include <unwindstack/Memory.h>
namespace unwindstack {

View file

@ -28,7 +28,6 @@
#include <android-base/file.h>
#include <android-base/mapped_file.h>
#include <android-base/test_utils.h>
#include <android-base/unique_fd.h>
#include <gtest/gtest.h>
#include <ziparchive/zip_archive.h>