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

Side by Side Diff: chrome/browser/chromeos/login/ui/login_web_dialog_browsertest.cc

Issue 2542493002: Replace kCanMaximize/Minimize/Resize with kResizeBehavior. (Closed)
Patch Set: Fix int->bool compile issue. Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/login/ui/login_web_dialog.h" 5 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
11 #include "services/ui/public/interfaces/window_manager_constants.mojom.h"
11 #include "ui/aura/client/aura_constants.h" 12 #include "ui/aura/client/aura_constants.h"
12 #include "ui/aura/window.h" 13 #include "ui/aura/window.h"
13 #include "ui/wm/public/activation_client.h" 14 #include "ui/wm/public/activation_client.h"
14 15
15 namespace chromeos { 16 namespace chromeos {
16 17
17 typedef InProcessBrowserTest LoginWebDialogTest; 18 typedef InProcessBrowserTest LoginWebDialogTest;
18 19
19 // Test that LoginWebDialog is not minimizable. 20 // Test that LoginWebDialog is not minimizable.
20 IN_PROC_BROWSER_TEST_F(LoginWebDialogTest, CannotMinimize) { 21 IN_PROC_BROWSER_TEST_F(LoginWebDialogTest, CannotMinimize) {
21 LoginWebDialog* dialog = new LoginWebDialog( 22 LoginWebDialog* dialog = new LoginWebDialog(
22 browser()->profile(), NULL, NULL, base::string16(), GURL()); 23 browser()->profile(), nullptr, nullptr, base::string16(), GURL());
23 dialog->Show(); 24 dialog->Show();
24 25
25 aura::client::ActivationClient* activation_client = 26 aura::client::ActivationClient* activation_client =
26 aura::client::GetActivationClient( 27 aura::client::GetActivationClient(
27 ash::Shell::GetInstance()->GetPrimaryRootWindow()); 28 ash::Shell::GetInstance()->GetPrimaryRootWindow());
28 aura::Window* active_window = activation_client->GetActiveWindow(); 29 aura::Window* window = activation_client->GetActiveWindow();
29 ASSERT_TRUE(active_window != NULL); 30 ASSERT_TRUE(window);
30 EXPECT_FALSE(active_window->GetProperty(aura::client::kCanMinimizeKey)); 31 EXPECT_EQ(0, window->GetProperty(aura::client::kResizeBehaviorKey) &
32 ui::mojom::kResizeBehaviorCanMinimize);
31 } 33 }
32 34
33 } // namespace chromeos 35 } // namespace chromeos
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_window_resizer_unittest.cc ('k') | chrome/browser/ui/ash/accelerator_commands_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698