Lines Matching refs:PathService
26 // Returns true if PathService::Get returns true and sets the path parameter
27 // to non-empty for the given PathService::DirType enumeration value.
30 bool result = PathService::Get(dir_type, &path);
85 bool result = PathService::Get(dir_type, &path);
96 // Test that all PathService::Get calls return a value and a true result
149 // test that all versions of the Override function of PathService do what they
156 // PathService::Override should always create the path provided if it doesn't
158 EXPECT_TRUE(PathService::Override(my_special_key, fake_cache_dir));
162 // PathService::OverrideAndCreateIfNeeded should obey the |create| parameter.
163 PathService::OverrideAndCreateIfNeeded(my_special_key,
167 EXPECT_TRUE(PathService::OverrideAndCreateIfNeeded(my_special_key,
179 EXPECT_TRUE(PathService::Override(my_special_key, fake_cache_dir1));
184 EXPECT_TRUE(PathService::Override(my_special_key + 1, fake_cache_dir2));
189 EXPECT_TRUE(PathService::Get(my_special_key, &result));
193 EXPECT_TRUE(PathService::Get(my_special_key + 1, &result));
200 PathService::RemoveOverride(base::DIR_TEMP);
203 EXPECT_TRUE(PathService::Get(base::DIR_TEMP, &original_user_data_dir));
204 EXPECT_FALSE(PathService::RemoveOverride(base::DIR_TEMP));
208 EXPECT_TRUE(PathService::Override(base::DIR_TEMP, temp_dir.path()));
210 EXPECT_TRUE(PathService::Get(base::DIR_TEMP, &new_user_data_dir));
213 EXPECT_TRUE(PathService::RemoveOverride(base::DIR_TEMP));
214 EXPECT_TRUE(PathService::Get(base::DIR_TEMP, &new_user_data_dir));