OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mock_file
(Results
1 - 7
of
7
) sorted by null
/external/chromium-trace/catapult/devil/devil/android/
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/
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/
linux_based_platform_backend_unittest.py
34
def SetMockFileInBackend(self, backend, real_file,
mock_file
):
36
backend.SetMockFile(
mock_file
, f.read())
/external/dbus-binding-generator/chromeos-dbus-bindings/
generate_chromeos_dbus_bindings.cc
213
std::string
mock_file
= cl->GetSwitchValueASCII(switches::kMock);
local
214
base::FilePath mock_path = RemoveQuotes(
mock_file
);
proxy_generator.h
36
const base::FilePath&
mock_file
,
proxy_generator.cc
104
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);
[
all
...]
/external/autotest/client/bin/
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()
Completed in 148 milliseconds