This source file includes following definitions.
- TEST_F
#include "base/os_compat_android.h"
#include "base/file_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
typedef testing::Test OsCompatAndroidTest;
TEST_F(OsCompatAndroidTest, DISABLED_TestMkdTemp) {
FilePath tmp_dir;
EXPECT_TRUE(base::GetTempDir(&tmp_dir));
FilePath sub_dir = tmp_dir.Append("XX");
std::string sub_dir_string = sub_dir.value();
char* buffer = const_cast<char*>(sub_dir_string.c_str());
EXPECT_EQ(NULL, mkdtemp(buffer));
char invalid_path2[] = "doesntoexist/foobarXXXXXX";
EXPECT_EQ(NULL, mkdtemp(invalid_path2));
FilePath sub_dir2 = tmp_dir.Append("XXXXXX");
std::string sub_dir2_string = sub_dir2.value();
char* buffer2 = const_cast<char*>(sub_dir2_string.c_str());
EXPECT_TRUE(mkdtemp(buffer2) != NULL);
}
}