| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/test/remoting/remote_desktop_browsertest.h" | 5 #include "chrome/test/remoting/remote_desktop_browsertest.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
| 9 #include "chrome/browser/extensions/unpacked_installer.h" | 9 #include "chrome/browser/extensions/unpacked_installer.h" |
| 10 #include "chrome/browser/ui/extensions/application_launch.h" | 10 #include "chrome/browser/ui/extensions/application_launch.h" |
| 11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/common/extensions/extension.h" | |
| 13 #include "chrome/common/extensions/extension_file_util.h" | 12 #include "chrome/common/extensions/extension_file_util.h" |
| 14 #include "chrome/test/remoting/key_code_conv.h" | 13 #include "chrome/test/remoting/key_code_conv.h" |
| 15 #include "chrome/test/remoting/page_load_notification_observer.h" | 14 #include "chrome/test/remoting/page_load_notification_observer.h" |
| 16 #include "chrome/test/remoting/waiter.h" | 15 #include "chrome/test/remoting/waiter.h" |
| 17 #include "content/public/browser/native_web_keyboard_event.h" | 16 #include "content/public/browser/native_web_keyboard_event.h" |
| 18 #include "content/public/browser/render_view_host.h" | 17 #include "content/public/browser/render_view_host.h" |
| 19 #include "content/public/test/test_utils.h" | 18 #include "content/public/test/test_utils.h" |
| 20 #include "extensions/common/constants.h" | 19 #include "extensions/common/constants.h" |
| 20 #include "extensions/common/extension.h" |
| 21 #include "ui/base/window_open_disposition.h" | 21 #include "ui/base/window_open_disposition.h" |
| 22 | 22 |
| 23 namespace remoting { | 23 namespace remoting { |
| 24 | 24 |
| 25 RemoteDesktopBrowserTest::RemoteDesktopBrowserTest() | 25 RemoteDesktopBrowserTest::RemoteDesktopBrowserTest() |
| 26 : extension_(NULL) { | 26 : extension_(NULL) { |
| 27 } | 27 } |
| 28 | 28 |
| 29 RemoteDesktopBrowserTest::~RemoteDesktopBrowserTest() {} | 29 RemoteDesktopBrowserTest::~RemoteDesktopBrowserTest() {} |
| 30 | 30 |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 } | 687 } |
| 688 | 688 |
| 689 // static | 689 // static |
| 690 bool RemoteDesktopBrowserTest::IsAuthenticatedInWindow( | 690 bool RemoteDesktopBrowserTest::IsAuthenticatedInWindow( |
| 691 content::WebContents* web_contents) { | 691 content::WebContents* web_contents) { |
| 692 return ExecuteScriptAndExtractBool( | 692 return ExecuteScriptAndExtractBool( |
| 693 web_contents, "remoting.identity.isAuthenticated()"); | 693 web_contents, "remoting.identity.isAuthenticated()"); |
| 694 } | 694 } |
| 695 | 695 |
| 696 } // namespace remoting | 696 } // namespace remoting |
| OLD | NEW |