Home
last modified time | relevance | path

Searched refs:mock_file (Results 1 – 7 of 7) sorted by relevance

/external/chromium-trace/catapult/devil/devil/android/
Dfastboot_utils_test.py191 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/
Dtest_awslambda.py107 mock_file = mock.Mock()
108 mock_file.tell.side_effect = IOError
112 function_zip=mock_file,
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dlinux_based_platform_backend_unittest.py34 def SetMockFileInBackend(self, backend, real_file, mock_file): argument
36 backend.SetMockFile(mock_file, f.read())
/external/dbus-binding-generator/chromeos-dbus-bindings/
Dgenerate_chromeos_dbus_bindings.cc213 std::string mock_file = cl->GetSwitchValueASCII(switches::kMock); in main() local
214 base::FilePath mock_path = RemoveQuotes(mock_file); in main()
Dproxy_generator.h36 const base::FilePath& mock_file,
Dproxy_generator.cc104 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/
Dkernel_unittest.py593 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()