| Index: content/public/test/browser_test_utils.cc
|
| diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
|
| index 802d4eba324aefe2afe3628832346c879ff54346..f18393ec0ae765514821f5759a102a070146c327 100644
|
| --- a/content/public/test/browser_test_utils.cc
|
| +++ b/content/public/test/browser_test_utils.cc
|
| @@ -742,6 +742,13 @@ void SimulateKeyPress(WebContents* web_contents,
|
| ASSERT_EQ(modifiers, 0);
|
| }
|
|
|
| +bool HasWebcamAvailableOnSystem(WebContents* tab_contents) {
|
| + std::string result;
|
| + EXPECT_TRUE(content::ExecuteScriptAndExtractString(
|
| + tab_contents, hasVideoInputDeviceOnSystem, &result));
|
| + return result == "has-video-input-device";
|
| +}
|
| +
|
| RenderFrameHost* ConvertToRenderFrameHost(WebContents* web_contents) {
|
| return web_contents->GetMainFrame();
|
| }
|
|
|