Lines Matching refs:base
21 #include "base/files/file.h"
22 #include "base/files/file_util.h"
23 #include "base/path_service.h"
62 base::FilePath resource_path;
63 ASSERT_TRUE(base::PathService::Get(base::DIR_SOURCE_ROOT, &resource_path));
68 ASSERT_TRUE(base::PathExists(resource_path));
70 base::FilePath target_path(GetTargetDirectory());
73 ASSERT_TRUE(base::CopyFile(resource_path, target_path));
97 base::FilePath test_image_path(GetTargetDirectory());
101 ASSERT_TRUE(base::ReadFileToString(test_image_path, &test_image_data));
102 const std::string md5 = base::MD5String(test_image_data);
132 base::FilePath resource_path;
133 ASSERT_TRUE(base::PathService::Get(base::DIR_SOURCE_ROOT, &resource_path));
138 ASSERT_TRUE(base::PathExists(resource_path));
140 base::FilePath target_path(GetTargetDirectory());
143 ASSERT_TRUE(base::CopyFile(resource_path, target_path));
168 base::FilePath test_image_path(GetTargetDirectory());
172 ASSERT_TRUE(base::ReadFileToString(test_image_path, &test_image_data));
173 const std::string md5 = base::MD5String(test_image_data);