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 "extensions/browser/app_window/native_app_window.h" | 5 #include "extensions/browser/app_window/native_app_window.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #import "base/mac/foundation_util.h" | 9 #import "base/mac/foundation_util.h" |
10 #import "base/mac/mac_util.h" | 10 #import "base/mac/mac_util.h" |
11 #import "base/mac/scoped_cftyperef.h" | 11 #import "base/mac/scoped_cftyperef.h" |
12 #import "base/mac/scoped_nsobject.h" | 12 #import "base/mac/scoped_nsobject.h" |
13 #import "base/mac/sdk_forward_declarations.h" | 13 #import "base/mac/sdk_forward_declarations.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "chrome/browser/apps/app_browsertest_util.h" | 15 #include "chrome/browser/apps/app_browsertest_util.h" |
16 #include "chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h" | 16 #include "chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h" |
17 #include "chrome/browser/apps/app_shim/test/app_shim_host_manager_test_api_mac.h
" | 17 #include "chrome/browser/apps/app_shim/test/app_shim_host_manager_test_api_mac.h
" |
18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/ui/extensions/app_launch_params.h" | 20 #include "chrome/browser/ui/extensions/app_launch_params.h" |
21 #include "chrome/browser/ui/extensions/application_launch.h" | 21 #include "chrome/browser/ui/extensions/application_launch.h" |
22 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
23 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
| 24 #include "content/public/browser/notification_types.h" |
24 #include "content/public/test/test_utils.h" | 25 #include "content/public/test/test_utils.h" |
25 #include "extensions/browser/app_window/app_window_registry.h" | 26 #include "extensions/browser/app_window/app_window_registry.h" |
26 #include "extensions/common/constants.h" | 27 #include "extensions/common/constants.h" |
27 #include "skia/ext/skia_utils_mac.h" | 28 #include "skia/ext/skia_utils_mac.h" |
28 #include "testing/gmock/include/gmock/gmock.h" | 29 #include "testing/gmock/include/gmock/gmock.h" |
29 #import "testing/gtest_mac.h" | 30 #import "testing/gtest_mac.h" |
30 #import "ui/base/test/nswindow_fullscreen_notification_waiter.h" | 31 #import "ui/base/test/nswindow_fullscreen_notification_waiter.h" |
31 #import "ui/base/test/scoped_fake_nswindow_focus.h" | 32 #import "ui/base/test/scoped_fake_nswindow_focus.h" |
32 #import "ui/base/test/scoped_fake_nswindow_fullscreen.h" | 33 #import "ui/base/test/scoped_fake_nswindow_fullscreen.h" |
33 #import "ui/base/test/windowed_nsnotification_observer.h" | 34 #import "ui/base/test/windowed_nsnotification_observer.h" |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 [expected_color getComponents:expected_components]; | 690 [expected_color getComponents:expected_components]; |
690 [color getComponents:color_components]; | 691 [color getComponents:color_components]; |
691 EXPECT_NEAR(expected_components[0], color_components[0], 0.01); | 692 EXPECT_NEAR(expected_components[0], color_components[0], 0.01); |
692 EXPECT_NEAR(expected_components[1], color_components[1], 0.01); | 693 EXPECT_NEAR(expected_components[1], color_components[1], 0.01); |
693 EXPECT_NEAR(expected_components[2], color_components[2], 0.01); | 694 EXPECT_NEAR(expected_components[2], color_components[2], 0.01); |
694 } | 695 } |
695 | 696 |
696 INSTANTIATE_TEST_CASE_P(NativeAppWindowCocoaBrowserTestInstance, | 697 INSTANTIATE_TEST_CASE_P(NativeAppWindowCocoaBrowserTestInstance, |
697 NativeAppWindowCocoaBrowserTest, | 698 NativeAppWindowCocoaBrowserTest, |
698 ::testing::Bool()); | 699 ::testing::Bool()); |
OLD | NEW |