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 "chrome/browser/apps/app_browsertest_util.h" | 15 #include "chrome/browser/apps/app_browsertest_util.h" |
15 #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" |
16 #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
" |
17 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/ui/extensions/app_launch_params.h" | 20 #include "chrome/browser/ui/extensions/app_launch_params.h" |
20 #include "chrome/browser/ui/extensions/application_launch.h" | 21 #include "chrome/browser/ui/extensions/application_launch.h" |
21 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
22 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
23 #include "content/public/test/test_utils.h" | 24 #include "content/public/test/test_utils.h" |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 [expected_color getComponents:expected_components]; | 714 [expected_color getComponents:expected_components]; |
714 [color getComponents:color_components]; | 715 [color getComponents:color_components]; |
715 EXPECT_NEAR(expected_components[0], color_components[0], 0.01); | 716 EXPECT_NEAR(expected_components[0], color_components[0], 0.01); |
716 EXPECT_NEAR(expected_components[1], color_components[1], 0.01); | 717 EXPECT_NEAR(expected_components[1], color_components[1], 0.01); |
717 EXPECT_NEAR(expected_components[2], color_components[2], 0.01); | 718 EXPECT_NEAR(expected_components[2], color_components[2], 0.01); |
718 } | 719 } |
719 | 720 |
720 INSTANTIATE_TEST_CASE_P(NativeAppWindowCocoaBrowserTestInstance, | 721 INSTANTIATE_TEST_CASE_P(NativeAppWindowCocoaBrowserTestInstance, |
721 NativeAppWindowCocoaBrowserTest, | 722 NativeAppWindowCocoaBrowserTest, |
722 ::testing::Bool()); | 723 ::testing::Bool()); |
OLD | NEW |