| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/ash/launcher/chrome_launcher_controller_per_app.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 scoped_ptr<ui::MenuModel> menu( | 451 scoped_ptr<ui::MenuModel> menu( |
| 452 launcher_controller.CreateApplicationMenu(item_gmail)); | 452 launcher_controller.CreateApplicationMenu(item_gmail)); |
| 453 menu->ActivatedAt(3); | 453 menu->ActivatedAt(3); |
| 454 } | 454 } |
| 455 // Now the active tab should be the second item. | 455 // Now the active tab should be the second item. |
| 456 EXPECT_EQ(0, browser()->tab_strip_model()->active_index()); | 456 EXPECT_EQ(0, browser()->tab_strip_model()->active_index()); |
| 457 } | 457 } |
| 458 | 458 |
| 459 // TODO(skuhne) Add tests for: | 459 // TODO(skuhne) Add tests for: |
| 460 // - V2 apps: create through item in launcher or directly | 460 // - V2 apps: create through item in launcher or directly |
| 461 // - Tracking correct activation state (seems not to work from unit_test) | |
| 462 // - Check that browser is always running or active when browser is active | |
| 463 // - Check that v1 app active shows browser active and app. | |
| 464 // .. | |
| OLD | NEW |