summaryrefslogtreecommitdiffstats
path: root/ash/launcher/launcher_unittest.cc
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-25 05:11:55 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-25 05:11:55 +0000
commit4280f4be4e602f51c34add5286d119dfa764a00c (patch)
treeb4fa3461a5f760f07a81b994ff9159ddf8782b24 /ash/launcher/launcher_unittest.cc
parent2e6b2ddcc4e9a0363d3e125172be75f1dc24bf6b (diff)
downloadchromium_src-4280f4be4e602f51c34add5286d119dfa764a00c.zip
chromium_src-4280f4be4e602f51c34add5286d119dfa764a00c.tar.gz
chromium_src-4280f4be4e602f51c34add5286d119dfa764a00c.tar.bz2
Remove app mode
BUG=119518 TEST=Existing Launcher tests Review URL: https://chromiumcodereview.appspot.com/9839099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128807 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher/launcher_unittest.cc')
-rw-r--r--ash/launcher/launcher_unittest.cc37
1 files changed, 0 insertions, 37 deletions
diff --git a/ash/launcher/launcher_unittest.cc b/ash/launcher/launcher_unittest.cc
index f872982..83f78f5 100644
--- a/ash/launcher/launcher_unittest.cc
+++ b/ash/launcher/launcher_unittest.cc
@@ -30,43 +30,6 @@ TEST_F(LauncherTest, SetStatusWidth) {
EXPECT_EQ(total_width - total_width / 2, launcher_view->width());
}
-// Confirm that launching an app gets the appropriate state reflected in
-// its button.
-TEST_F(LauncherTest, LaunchApp) {
- Launcher* launcher = Shell::GetInstance()->launcher();
- ASSERT_TRUE(launcher);
- LauncherView* launcher_view = launcher->GetLauncherViewForTest();
- LauncherView::TestAPI test(launcher_view);
- LauncherModel* model = launcher->model();
-
- // Initially we have the app list and chrome icon.
- int button_count = test.GetButtonCount();
-
- // Add closed app.
- LauncherItem item;
- item.type = TYPE_APP;
- int index = model->Add(item);
- ASSERT_EQ(++button_count, test.GetButtonCount());
- LauncherButton* button = test.GetButton(index);
- EXPECT_EQ(LauncherButton::STATE_NORMAL, button->state());
-
- // Open it.
- item = model->items()[index];
- item.status = STATUS_RUNNING;
- model->Set(index, item);
- EXPECT_EQ(LauncherButton::STATE_RUNNING, button->state());
-
- // Close it.
- item = model->items()[index];
- item.status = STATUS_CLOSED;
- model->Set(index, item);
- EXPECT_EQ(LauncherButton::STATE_NORMAL, button->state());
-
- // Remove it.
- model->RemoveItemAt(index);
- ASSERT_EQ(--button_count, test.GetButtonCount());
-}
-
// Confirm that launching a browser gets the appropriate state reflected in
// its button.
TEST_F(LauncherTest, OpenBrowser) {