Lines Matching refs:files
43 self.files = {}
55 return self.files.get(path) is not None
58 self.files[path] = True
64 return self.files[path]
69 self.files[path] = contents
87 return FakeFile(self.files)
90 del self.files[path]
94 files_to_delete = [f for f in self.files if f.startswith(path)]
96 self.files[f] = None
100 def __init__(self, files): argument
103 self.files = files
109 self.files[self.name] = self.buf
159 def fake_mbw(self, files=None, win32=False): argument
161 mbw.files.setdefault(mbw.default_config, TEST_CONFIG)
162 mbw.files.setdefault(
171 mbw.files.setdefault(
174 if files:
175 for path, contents in files.items():
176 mbw.files[path] = contents
179 def check(self, args, mbw=None, files=None, out=None, err=None, ret=None): argument
181 mbw = self.fake_mbw(files)
193 files = {'/tmp/in.json': '''{\
204 mbw = self.fake_mbw(files)
209 out = json.loads(mbw.files['/tmp/out.json'])
220 self.assertMultiLineEqual(mbw.files['/fake_src/out/Default/args.gn'],
233 self.assertMultiLineEqual(mbw.files['c:\\fake_src\\out\\Debug\\args.gn'],
245 mbw.files['/fake_src/out/Debug/args.gn'],
255 files = {
268 mbw = self.fake_mbw(files)
274 mbw.files)
276 mbw.files)
295 files=test_files, ret=0)
297 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
299 files = isolate_file_contents['variables']['files']
302 self.assertEqual(files, ['../../.vpython', '../../testing/test_env.py',
329 files=test_files, ret=0)
331 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
333 files = isolate_file_contents['variables']['files']
336 self.assertEqual(files, ['../../.vpython', '../../testing/test_env.py',
364 files=test_files, ret=0)
366 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
368 files = isolate_file_contents['variables']['files']
371 self.assertEqual(files, [
413 files=test_files, ret=0)
416 mbw.files['/fake_src/out/Default/base_unittests_script.isolate'])
418 files = isolate_file_contents['variables']['files']
421 self.assertEqual(files, [
446 files=test_files, ret=0)
448 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
450 files = isolate_file_contents['variables']['files']
453 self.assertEqual(files, [
486 files=test_files, ret=0)
488 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
490 files = isolate_file_contents['variables']['files']
493 self.assertEqual(files, [
534 files=test_files, ret=0)
536 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
538 files = isolate_file_contents['variables']['files']
541 self.assertEqual(files, [
566 files = {
579 mbw = self.fake_mbw(files=files, win32=True)
587 isolate_file = mbw.files['c:\\fake_src\\out\\Default\\unittests.isolate']
589 files = isolate_file_contents['variables']['files']
592 self.assertEqual(files, [
632 files=test_files, ret=0)
634 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
636 files = isolate_file_contents['variables']['files']
639 self.assertEqual(files, [
680 files=test_files, ret=0)
682 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate']
684 files = isolate_file_contents['variables']['files']
687 self.assertEqual(files, [
713 files = {
726 'base_unittests'], files=files, ret=0)
729 files['/fake_src/out/Default/args.gn'] = 'is_debug = True\n'
731 files=files, ret=0)
732 files['/fake_src/out/Default/mb_type'] = 'gn\n'
734 files=files, ret=0)
737 files = {
749 'base_unittests'], files=files, ret=0)
752 files = {
767 mbw = self.fake_mbw(files=files)