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

/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/awslambda/
H A Dtest_awslambda.py107 mock_file = mock.Mock()
108 mock_file.tell.side_effect = IOError
112 function_zip=mock_file,
/external/chromium-trace/catapult/devil/devil/android/
H A Dfastboot_utils_test.py213 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'abc')
220 with mock.patch('__builtin__.open', return_value=mock_file, create=True):
229 mock_file = io.StringIO(u'require board=%s\n' % _BOARD)
230 with mock.patch('__builtin__.open', return_value=mock_file, create=True):
235 mock_file = io.StringIO(u'require board=%s\n' % _BOARD)
236 with mock.patch('__builtin__.open', return_value=mock_file, create=True):
241 mock_file = io.StringIO(u'require board=WrongBoard')
242 with mock.patch('__builtin__.open', return_value=mock_file, creat
[all...]
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
H A Dlinux_based_platform_backend_unittest.py34 def SetMockFileInBackend(self, backend, real_file, mock_file):
36 backend.SetMockFile(mock_file, f.read())
/external/dbus-binding-generator/chromeos-dbus-bindings/
H A Dgenerate_chromeos_dbus_bindings.cc213 std::string mock_file = cl->GetSwitchValueASCII(switches::kMock); local
214 base::FilePath mock_path = RemoveQuotes(mock_file);
H A Dproxy_generator.h36 const base::FilePath& mock_file,
H A Dproxy_generator.cc104 const base::FilePath& mock_file,
113 string header_guard = GenerateHeaderGuard(mock_file);
135 // Generate a relative path from |mock_file| to |proxy_file|.
139 mock_file.DirName().GetComponents(&src_components);
182 return WriteTextToFile(mock_file, text);
102 GenerateMocks(const ServiceConfig& config, const std::vector<Interface>& interfaces, const base::FilePath& mock_file, const base::FilePath& proxy_file, bool use_literal_proxy_file) argument
/external/autotest/client/bin/
H A 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()

Completed in 189 milliseconds