Searched refs:mock_file (Results 1 – 7 of 7) sorted by relevance
/external/chromium-trace/catapult/devil/devil/android/ |
D | fastboot_utils_test.py | 191 mock_file = io.StringIO(u'require board=%s\n' % _BOARD) 192 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 197 mock_file = io.StringIO(u'abc') 198 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 207 mock_file = io.StringIO(u'require board=%s\n' % _BOARD) 208 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 213 mock_file = io.StringIO(u'require board=%s\n' % _BOARD) 214 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 219 mock_file = io.StringIO(u'require board=WrongBoard') 220 with mock.patch('__builtin__.open', return_value=mock_file, create=True): [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/awslambda/ |
D | test_awslambda.py | 107 mock_file = mock.Mock() 108 mock_file.tell.side_effect = IOError 112 function_zip=mock_file,
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/ |
D | linux_based_platform_backend_unittest.py | 34 def SetMockFileInBackend(self, backend, real_file, mock_file): argument 36 backend.SetMockFile(mock_file, f.read())
|
/external/dbus-binding-generator/chromeos-dbus-bindings/ |
D | generate_chromeos_dbus_bindings.cc | 213 std::string mock_file = cl->GetSwitchValueASCII(switches::kMock); in main() local 214 base::FilePath mock_path = RemoveQuotes(mock_file); in main()
|
D | proxy_generator.h | 36 const base::FilePath& mock_file,
|
D | proxy_generator.cc | 104 const base::FilePath& mock_file, in GenerateMocks() argument 113 string header_guard = GenerateHeaderGuard(mock_file); in GenerateMocks() 139 mock_file.DirName().GetComponents(&src_components); in GenerateMocks() 182 return WriteTextToFile(mock_file, text); in GenerateMocks()
|
/external/autotest/client/bin/ |
D | kernel_unittest.py | 593 mock_file = self.god.create_mock_class(file, "file") 599 kernel.open.expect_call(f, 'r').and_return(mock_file) 600 mock_file.readlines.expect_call().and_return("Some lines") 601 mock_file.close.expect_call()
|