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_impl.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.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> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 #include "chrome/test/base/test_browser_window_aura.h" | 74 #include "chrome/test/base/test_browser_window_aura.h" |
75 #include "chrome/test/base/testing_browser_process.h" | 75 #include "chrome/test/base/testing_browser_process.h" |
76 #include "chrome/test/base/testing_profile.h" | 76 #include "chrome/test/base/testing_profile.h" |
77 #include "chrome/test/base/testing_profile_manager.h" | 77 #include "chrome/test/base/testing_profile_manager.h" |
78 #include "chromeos/chromeos_switches.h" | 78 #include "chromeos/chromeos_switches.h" |
79 #include "components/arc/common/app.mojom.h" | 79 #include "components/arc/common/app.mojom.h" |
80 #include "components/arc/test/fake_app_instance.h" | 80 #include "components/arc/test/fake_app_instance.h" |
81 #include "components/arc/test/fake_arc_bridge_service.h" | 81 #include "components/arc/test/fake_arc_bridge_service.h" |
82 #include "components/exo/shell_surface.h" | 82 #include "components/exo/shell_surface.h" |
83 #include "components/signin/core/account_id/account_id.h" | 83 #include "components/signin/core/account_id/account_id.h" |
| 84 #include "components/sync/api/fake_sync_change_processor.h" |
| 85 #include "components/sync/api/sync_error_factory_mock.h" |
| 86 #include "components/sync/protocol/sync.pb.h" |
84 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 87 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
85 #include "components/user_manager/fake_user_manager.h" | 88 #include "components/user_manager/fake_user_manager.h" |
86 #include "content/public/browser/web_contents.h" | 89 #include "content/public/browser/web_contents.h" |
87 #include "content/public/browser/web_contents_observer.h" | 90 #include "content/public/browser/web_contents_observer.h" |
88 #include "content/public/test/test_utils.h" | 91 #include "content/public/test/test_utils.h" |
89 #include "content/public/test/web_contents_tester.h" | 92 #include "content/public/test/web_contents_tester.h" |
90 #include "extensions/browser/app_window/app_window_contents.h" | 93 #include "extensions/browser/app_window/app_window_contents.h" |
91 #include "extensions/browser/app_window/app_window_registry.h" | 94 #include "extensions/browser/app_window/app_window_registry.h" |
92 #include "extensions/browser/app_window/native_app_window.h" | 95 #include "extensions/browser/app_window/native_app_window.h" |
93 #include "extensions/common/extension.h" | 96 #include "extensions/common/extension.h" |
94 #include "extensions/common/manifest_constants.h" | 97 #include "extensions/common/manifest_constants.h" |
95 #include "sync/api/fake_sync_change_processor.h" | |
96 #include "sync/api/sync_error_factory_mock.h" | |
97 #include "sync/protocol/sync.pb.h" | |
98 #include "testing/gtest/include/gtest/gtest.h" | 98 #include "testing/gtest/include/gtest/gtest.h" |
99 #include "ui/aura/client/window_tree_client.h" | 99 #include "ui/aura/client/window_tree_client.h" |
100 #include "ui/aura/window.h" | 100 #include "ui/aura/window.h" |
101 #include "ui/base/models/menu_model.h" | 101 #include "ui/base/models/menu_model.h" |
102 #include "ui/display/display.h" | 102 #include "ui/display/display.h" |
103 #include "ui/display/screen.h" | 103 #include "ui/display/screen.h" |
104 #include "ui/views/widget/widget.h" | 104 #include "ui/views/widget/widget.h" |
105 | 105 |
106 using base::ASCIIToUTF16; | 106 using base::ASCIIToUTF16; |
107 using extensions::Extension; | 107 using extensions::Extension; |
(...skipping 3546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3654 EXPECT_FALSE(controller->rotation_locked()); | 3654 EXPECT_FALSE(controller->rotation_locked()); |
3655 EXPECT_EQ(display::Display::ROTATE_0, | 3655 EXPECT_EQ(display::Display::ROTATE_0, |
3656 display::Screen::GetScreen()->GetPrimaryDisplay().rotation()); | 3656 display::Screen::GetScreen()->GetPrimaryDisplay().rotation()); |
3657 | 3657 |
3658 NotifyOnTaskOrientationLockRequested(task_id_current_, | 3658 NotifyOnTaskOrientationLockRequested(task_id_current_, |
3659 OrientationLock::CURRENT); | 3659 OrientationLock::CURRENT); |
3660 EXPECT_TRUE(controller->rotation_locked()); | 3660 EXPECT_TRUE(controller->rotation_locked()); |
3661 EXPECT_EQ(display::Display::ROTATE_0, | 3661 EXPECT_EQ(display::Display::ROTATE_0, |
3662 display::Screen::GetScreen()->GetPrimaryDisplay().rotation()); | 3662 display::Screen::GetScreen()->GetPrimaryDisplay().rotation()); |
3663 } | 3663 } |
OLD | NEW |