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/browser/apps/app_browsertest_util.h" | 5 #include "chrome/browser/apps/app_browsertest_util.h" |
6 #include "chrome/browser/profiles/profile.h" | 6 #include "chrome/browser/profiles/profile.h" |
| 7 #include "components/infobars/core/infobar_delegate.h" |
7 #include "content/public/test/browser_test_utils.h" | 8 #include "content/public/test/browser_test_utils.h" |
8 #include "extensions/browser/process_manager.h" | 9 #include "extensions/browser/process_manager.h" |
9 #include "extensions/common/switches.h" | 10 #include "extensions/common/switches.h" |
10 #include "extensions/test/extension_test_message_listener.h" | 11 #include "extensions/test/extension_test_message_listener.h" |
11 | 12 |
12 class WindowControlsTest : public extensions::PlatformAppBrowserTest { | 13 class WindowControlsTest : public extensions::PlatformAppBrowserTest { |
13 protected: | 14 protected: |
14 void SetUpCommandLine(base::CommandLine* command_line) override { | 15 void SetUpCommandLine(base::CommandLine* command_line) override { |
15 extensions::PlatformAppBrowserTest::SetUpCommandLine(command_line); | 16 extensions::PlatformAppBrowserTest::SetUpCommandLine(command_line); |
16 command_line->AppendSwitch(extensions::switches::kEnableAppWindowControls); | 17 command_line->AppendSwitch(extensions::switches::kEnableAppWindowControls); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 const int controlOffset = 25; | 61 const int controlOffset = 25; |
61 int x = web_contents->GetContainerBounds().size().width() - controlOffset; | 62 int x = web_contents->GetContainerBounds().size().width() - controlOffset; |
62 int y = controlOffset; | 63 int y = controlOffset; |
63 content::SimulateMouseClickAt(web_contents, | 64 content::SimulateMouseClickAt(web_contents, |
64 0, | 65 0, |
65 blink::WebMouseEvent::ButtonLeft, | 66 blink::WebMouseEvent::ButtonLeft, |
66 gfx::Point(x, y)); | 67 gfx::Point(x, y)); |
67 | 68 |
68 ASSERT_TRUE(window_closed.WaitUntilSatisfied()); | 69 ASSERT_TRUE(window_closed.WaitUntilSatisfied()); |
69 } | 70 } |
OLD | NEW |