| Index: tools/vim/tests/chromium.ycm_extra_conf_unittest.py
|
| diff --git a/tools/vim/tests/chromium.ycm_extra_conf_unittest.py b/tools/vim/tests/chromium.ycm_extra_conf_unittest.py
|
| index 303207055f7bbc6462a03ff0635699ae8b110d7d..d0a555851d93c4996ce9d5be748115b8cfbcce5a 100755
|
| --- a/tools/vim/tests/chromium.ycm_extra_conf_unittest.py
|
| +++ b/tools/vim/tests/chromium.ycm_extra_conf_unittest.py
|
| @@ -163,6 +163,18 @@ class Chromium_ycmExtraConfTest(unittest.TestCase):
|
| '-I[OUT]/tag-one'
|
| ])
|
|
|
| + def testOutDirNames(self):
|
| + out_root = os.path.join(self.chrome_root, 'out_with_underscore')
|
| + out_dir = os.path.join(out_root, 'Debug')
|
| + shutil.move(os.path.join(self.chrome_root, 'out'),
|
| + out_root)
|
| +
|
| + clang_options = \
|
| + self.ycm_extra_conf.GetClangOptionsFromNinjaForFilename(
|
| + self.chrome_root, os.path.join(self.chrome_root, 'one.cpp'))
|
| + self.assertIn('-I%s/a' % out_dir, clang_options)
|
| + self.assertIn('-I%s/tag-one' % out_dir, clang_options)
|
| +
|
| def testGetFlagsForFileForKnownCppFile(self):
|
| result = self.ycm_extra_conf.FlagsForFile(
|
| os.path.join(self.chrome_root, 'one.cpp'))
|
|
|