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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 #include <stddef.h> |
6 | 7 |
7 #include "base/basictypes.h" | |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "base/path_service.h" | 13 #include "base/path_service.h" |
13 #include "base/values.h" | 14 #include "base/values.h" |
14 #include "chrome/browser/extensions/api/commands/command_service.h" | 15 #include "chrome/browser/extensions/api/commands/command_service.h" |
15 #include "chrome/browser/extensions/extension_service.h" | 16 #include "chrome/browser/extensions/extension_service.h" |
16 #include "chrome/browser/extensions/test_extension_system.h" | 17 #include "chrome/browser/extensions/test_extension_system.h" |
17 #include "chrome/browser/ui/browser_window.h" | 18 #include "chrome/browser/ui/browser_window.h" |
18 #import "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 19 #import "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
19 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
r.h" | 20 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
r.h" |
20 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 21 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 // Make sure there is always enough room for the icon and margin. | 366 // Make sure there is always enough room for the icon and margin. |
366 int minHeight = extension_installed_bubble::kIconSize + | 367 int minHeight = extension_installed_bubble::kIconSize + |
367 (2 * extension_installed_bubble::kOuterVerticalMargin); | 368 (2 * extension_installed_bubble::kOuterVerticalMargin); |
368 EXPECT_GT(height, minHeight); | 369 EXPECT_GT(height, minHeight); |
369 | 370 |
370 // Make sure the "show me" link is visible. | 371 // Make sure the "show me" link is visible. |
371 EXPECT_FALSE([[controller appInstalledShortcutLink] isHidden]); | 372 EXPECT_FALSE([[controller appInstalledShortcutLink] isHidden]); |
372 | 373 |
373 [controller close]; | 374 [controller close]; |
374 } | 375 } |
OLD | NEW |