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

Unified Diff: chrome/browser/ui/browser_unittest.cc

Issue 11072002: Combined window positioning and show state determiniation in the WindowSizer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prefs/pref_service_browsertest.cc ('k') | chrome/browser/ui/browser_window_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_unittest.cc
diff --git a/chrome/browser/ui/browser_unittest.cc b/chrome/browser/ui/browser_unittest.cc
index 5802e77146878b3f835ad08310d5f7518c9c3ca8..683ed678783e7c9cc4d4b0207ed4e5218b0d958e 100644
--- a/chrome/browser/ui/browser_unittest.cc
+++ b/chrome/browser/ui/browser_unittest.cc
@@ -10,25 +10,6 @@
#include "chrome/test/base/browser_with_test_window_test.h"
#include "content/public/browser/native_web_keyboard_event.h"
-// Various assertions around setting show state.
-TEST_F(BrowserWithTestWindowTest, GetSavedWindowShowState) {
- // Default show state is SHOW_STATE_DEFAULT.
- EXPECT_EQ(ui::SHOW_STATE_DEFAULT, chrome::GetSavedWindowShowState(browser()));
-
- // Explicitly specifying a state should stick though.
- browser()->set_initial_show_state(ui::SHOW_STATE_MAXIMIZED);
- EXPECT_EQ(ui::SHOW_STATE_MAXIMIZED,
- chrome::GetSavedWindowShowState(browser()));
- browser()->set_initial_show_state(ui::SHOW_STATE_NORMAL);
- EXPECT_EQ(ui::SHOW_STATE_NORMAL, chrome::GetSavedWindowShowState(browser()));
- browser()->set_initial_show_state(ui::SHOW_STATE_MINIMIZED);
- EXPECT_EQ(ui::SHOW_STATE_MINIMIZED,
- chrome::GetSavedWindowShowState(browser()));
- browser()->set_initial_show_state(ui::SHOW_STATE_FULLSCREEN);
- EXPECT_EQ(ui::SHOW_STATE_FULLSCREEN,
- chrome::GetSavedWindowShowState(browser()));
-}
-
TEST_F(BrowserWithTestWindowTest, IsReservedCommandOrKey) {
#if defined(OS_CHROMEOS)
const content::NativeWebKeyboardEvent event(ui::ET_KEY_PRESSED,
« no previous file with comments | « chrome/browser/prefs/pref_service_browsertest.cc ('k') | chrome/browser/ui/browser_window_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698