| Index: chrome/test/pyautolib/pyauto.py
|
| diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
|
| index ec3be84359210e4015a48fc641aff497e4c2b120..367ce6c1fa862340900a1efb6ce8bd15876664cd 100644
|
| --- a/chrome/test/pyautolib/pyauto.py
|
| +++ b/chrome/test/pyautolib/pyauto.py
|
| @@ -3607,6 +3607,21 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
|
| }
|
| return self._GetResultFromJSONRequest(cmd_dict, windex=-1)
|
|
|
| + def CaptureProfilePhoto(self):
|
| + """Captures user profile photo on ChromeOS.
|
| +
|
| + This is done by driving the TakePhotoDialog. The image file is
|
| + saved on disk and its path is set in the local state preferences.
|
| +
|
| + A user needs to be logged-in as a precaution. Image capture is
|
| + synchronous but the file write is not.
|
| +
|
| + Raises:
|
| + pyauto_errors.JSONInterfaceError if the automation call returns an error.
|
| + """
|
| + cmd_dict = { 'command': 'CaptureProfilePhoto' }
|
| + return self._GetResultFromJSONRequest(cmd_dict)
|
| +
|
| ## ChromeOS section -- end
|
|
|
|
|
|
|