| OLD | NEW |
| 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/ui/ash/launcher/chrome_launcher_controller.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <utility> | 14 #include <utility> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "ash/display/display_configuration_controller.h" | 17 #include "ash/display/display_configuration_controller.h" |
| 18 #include "ash/display/screen_orientation_controller_chromeos.h" | 18 #include "ash/display/screen_orientation_controller_chromeos.h" |
| 19 #include "ash/public/cpp/shelf_item.h" | 19 #include "ash/public/cpp/shelf_item.h" |
| 20 #include "ash/public/cpp/shelf_item_delegate.h" | 20 #include "ash/public/cpp/shelf_item_delegate.h" |
| 21 #include "ash/public/cpp/shelf_model.h" |
| 22 #include "ash/public/cpp/shelf_model_observer.h" |
| 21 #include "ash/shelf/shelf_application_menu_model.h" | 23 #include "ash/shelf/shelf_application_menu_model.h" |
| 22 #include "ash/shelf/shelf_constants.h" | 24 #include "ash/shelf/shelf_constants.h" |
| 23 #include "ash/shelf/shelf_controller.h" | 25 #include "ash/shelf/shelf_controller.h" |
| 24 #include "ash/shelf/shelf_model.h" | |
| 25 #include "ash/shelf/shelf_model_observer.h" | |
| 26 #include "ash/shell.h" | 26 #include "ash/shell.h" |
| 27 #include "ash/test/ash_test_helper.h" | 27 #include "ash/test/ash_test_helper.h" |
| 28 #include "ash/test/shell_test_api.h" | 28 #include "ash/test/shell_test_api.h" |
| 29 #include "ash/test/test_shell_delegate.h" | 29 #include "ash/test/test_shell_delegate.h" |
| 30 #include "ash/wm/maximize_mode/maximize_mode_controller.h" | 30 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| 31 #include "ash/wm/window_util.h" | 31 #include "ash/wm/window_util.h" |
| 32 #include "base/command_line.h" | 32 #include "base/command_line.h" |
| 33 #include "base/compiler_specific.h" | 33 #include "base/compiler_specific.h" |
| 34 #include "base/files/file_path.h" | 34 #include "base/files/file_path.h" |
| 35 #include "base/json/json_string_value_serializer.h" | 35 #include "base/json/json_string_value_serializer.h" |
| (...skipping 4254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4290 EXPECT_EQ(3u, shelf_controller->added_count()); | 4290 EXPECT_EQ(3u, shelf_controller->added_count()); |
| 4291 EXPECT_EQ(1u, shelf_controller->removed_count()); | 4291 EXPECT_EQ(1u, shelf_controller->removed_count()); |
| 4292 | 4292 |
| 4293 // Remove an item from Chrome's model; ShelfController should be notified. | 4293 // Remove an item from Chrome's model; ShelfController should be notified. |
| 4294 model_.RemoveItemAt(2); | 4294 model_.RemoveItemAt(2); |
| 4295 EXPECT_EQ(2, model_.item_count()); | 4295 EXPECT_EQ(2, model_.item_count()); |
| 4296 base::RunLoop().RunUntilIdle(); | 4296 base::RunLoop().RunUntilIdle(); |
| 4297 EXPECT_EQ(3u, shelf_controller->added_count()); | 4297 EXPECT_EQ(3u, shelf_controller->added_count()); |
| 4298 EXPECT_EQ(2u, shelf_controller->removed_count()); | 4298 EXPECT_EQ(2u, shelf_controller->removed_count()); |
| 4299 } | 4299 } |
| OLD | NEW |