Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/apps/window_controls_browsertest.cc

Issue 23003004: Move apps tests from c/b/extensions to c/b/apps and refine DEPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct ordering in typi Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/extensions/extension_process_manager.h" 6 #include "chrome/browser/extensions/extension_process_manager.h"
6 #include "chrome/browser/extensions/extension_test_message_listener.h" 7 #include "chrome/browser/extensions/extension_test_message_listener.h"
7 #include "chrome/browser/extensions/platform_app_browsertest_util.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "content/public/browser/web_contents_view.h" 10 #include "content/public/browser/web_contents_view.h"
11 #include "content/public/test/browser_test_utils.h" 11 #include "content/public/test/browser_test_utils.h"
12 12
13 class WindowControlsTest : public extensions::PlatformAppBrowserTest { 13 class WindowControlsTest : public extensions::PlatformAppBrowserTest {
14 protected: 14 protected:
15 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 15 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
16 extensions::PlatformAppBrowserTest::SetUpCommandLine(command_line); 16 extensions::PlatformAppBrowserTest::SetUpCommandLine(command_line);
17 command_line->AppendSwitch(switches::kEnableAppWindowControls); 17 command_line->AppendSwitch(switches::kEnableAppWindowControls);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const int controlOffset = 25; 71 const int controlOffset = 25;
72 int x = web_contents->GetView()->GetContainerSize().width() - controlOffset; 72 int x = web_contents->GetView()->GetContainerSize().width() - controlOffset;
73 int y = controlOffset; 73 int y = controlOffset;
74 content::SimulateMouseClickAt(web_contents, 74 content::SimulateMouseClickAt(web_contents,
75 0, 75 0,
76 WebKit::WebMouseEvent::ButtonLeft, 76 WebKit::WebMouseEvent::ButtonLeft,
77 gfx::Point(x, y)); 77 gfx::Point(x, y));
78 78
79 ASSERT_TRUE(window_closed.WaitUntilSatisfied()); 79 ASSERT_TRUE(window_closed.WaitUntilSatisfied());
80 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698