tools/vim/tests/chromium.ycm_extra_conf_unittest.py
def SetUpFakeChromeTreeBelowPath(self):
    """Create fake Chromium source tree under self.test_root.

    The fake source tree has the following contents:

    <self.test_root>
      |  .gclient
      |
      +-- src
      |   |  DEPS
      |   |  three.cc
      |   |
      |   +-- .git
      |
      +-- out
          |
          +-- gn
                build.ninja
    """
    self.chrome_root = os.path.abspath(
        os.path.normpath(os.path.join(self.test_root, 'src')))
    self.out_dir = os.path.join(self.chrome_root, 'out', 'gn')

    os.makedirs(self.chrome_root)
    os.makedirs(os.path.join(self.chrome_root, '.git'))
    os.makedirs(self.out_dir)

    CreateFile(os.path.join(self.test_root, '.gclient'))
    CreateFile(os.path.join(self.chrome_root, 'DEPS'))
    CreateFile(os.path.join(self.chrome_root, 'three.cc'))

    # Fake ninja build file. Applications of 'cxx' rule are tagged by which
    # source file was used as input so that the test can verify that the correct
    # build dependency was used.
    CreateFile(
        os.path.join(self.out_dir, 'build.ninja'),
        copy_from=os.path.join(self.test_data_path, 'fake_build_ninja.txt'))
Create fake Chromium source tree under self.test_root.

    The fake source tree has the following contents:

    <self.test_root>
      |  .gclient
      |
      +-- src
      |   |  DEPS
      |   |  three.cc
      |   |
      |   +-- .git
      |
      +-- out
          |
          +-- gn
                build.ninja
    
Create fake Chromium source tree under self.test_root.
The fake source tree has the following contents.


Create fake Chromium source tree under self . test_root . The fake source tree has the following contents .
def SetUpFakeChromeTreeBelowPath(self):
    self.chrome_root = os.path.abspath(
        os.path.normpath(os.path.join(self.test_root, 'src')))
    self.out_dir = os.path.join(self.chrome_root, 'out', 'gn')
    os.makedirs(self.chrome_root)
    os.makedirs(os.path.join(self.chrome_root, '.git'))
    os.makedirs(self.out_dir)
    CreateFile(os.path.join(self.test_root, '.gclient'))
    CreateFile(os.path.join(self.chrome_root, 'DEPS'))
    CreateFile(os.path.join(self.chrome_root, 'three.cc'))
    CreateFile(
        os.path.join(self.out_dir, 'build.ninja'),
        copy_from=os.path.join(self.test_data_path, 'fake_build_ninja.txt'))
def SetUpFakeChromeTreeBelowPath ( self ) : self . chrome_root = os . path . abspath ( os . path . normpath ( os . path . join ( self . test_root , 'src' ) ) ) self . out_dir = os . path . join ( self . chrome_root , 'out' , 'gn' ) os . makedirs ( self . chrome_root ) os . makedirs ( os . path . join ( self . chrome_root , '.git' ) ) os . makedirs ( self . out_dir ) CreateFile ( os . path . join ( self . test_root , '.gclient' ) ) CreateFile ( os . path . join ( self . chrome_root , 'DEPS' ) ) CreateFile ( os . path . join ( self . chrome_root , 'three.cc' ) ) CreateFile ( os . path . join ( self . out_dir , 'build.ninja' ) , copy_from = os . path . join ( self . test_data_path , 'fake_build_ninja.txt' ) )
Create fake Chromium source tree under self.test_root.
Create fake Chromium source tree under self . test_root .
"""Create fake Chromium source tree under self.test_root.

    The fake source tree has the following contents:

    <self.test_root>
      |  .gclient
      |
      +-- src
      |   |  DEPS
      |   |  three.cc
      |   |
      |   +-- .git
      |
      +-- out
          |
          +-- gn
                build.ninja
    """ # Fake ninja build file. Applications of 'cxx' rule are tagged by which # source file was used as input so that the test can verify that the correct # build dependency was used.
self