Exemple #1
0
 def testCheckedInFile(self):
     test_path = os.path.join(constants.DIR_SOURCE_ROOT, 'foo', 'bar',
                              'baz.txt')
     output_directory = os.path.join(constants.DIR_SOURCE_ROOT, 'out-foo',
                                     'Release')
     self.assertEquals([None, 'foo', 'bar', 'baz.txt'],
                       device_dependencies.DevicePathComponentsFor(
                           test_path, output_directory))
Exemple #2
0
 def testOutputDirectoryPakFile(self):
     test_path = os.path.join(constants.DIR_SOURCE_ROOT, 'out-foo',
                              'Release', 'foo.pak')
     output_directory = os.path.join(constants.DIR_SOURCE_ROOT, 'out-foo',
                                     'Release')
     self.assertEquals([None, 'paks', 'foo.pak'],
                       device_dependencies.DevicePathComponentsFor(
                           test_path, output_directory))
 def testOutputDirectorySubdirFile(self):
     test_path = os.path.join(constants.DIR_SOURCE_ROOT, 'out-foo',
                              'Release', 'test_dir', 'icudtl.dat')
     output_directory = os.path.join(constants.DIR_SOURCE_ROOT, 'out-foo',
                                     'Release')
     self.assertEqual([None, 'test_dir', 'icudtl.dat'],
                      device_dependencies.DevicePathComponentsFor(
                          test_path, output_directory))