Lines Matching refs:output
45 std::string output; in TEST() local
46 …_TRUE(normalize_path("/../root///dir/.///dir2/somedir/../zipfile!/dir/dir9//..///afile", &output)); in TEST()
47 ASSERT_EQ("/root/dir/dir2/zipfile!/dir/afile", output); in TEST()
49 …RUE(normalize_path("/../root///dir/.///dir2/somedir/.../zipfile!/.dir/dir9//..///afile", &output)); in TEST()
50 ASSERT_EQ("/root/dir/dir2/somedir/.../zipfile!/.dir/afile", output); in TEST()
52 ASSERT_TRUE(normalize_path("/root/..", &output)); in TEST()
53 ASSERT_EQ("/", output); in TEST()
55 ASSERT_TRUE(normalize_path("/root/notroot/..", &output)); in TEST()
56 ASSERT_EQ("/root/", output); in TEST()
58 ASSERT_TRUE(normalize_path("/a/../../b", &output)); in TEST()
59 ASSERT_EQ("/b", output); in TEST()
61 ASSERT_TRUE(normalize_path("/..", &output)); in TEST()
62 ASSERT_EQ("/", output); in TEST()
64 output = "unchanged"; in TEST()
65 …ERT_FALSE(normalize_path("root///dir/.///dir2/somedir/../zipfile!/dir/dir9//..///afile", &output)); in TEST()
66 ASSERT_EQ("unchanged", output); in TEST()