| 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 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/extensions/extension_service.h" | 14 #include "chrome/browser/extensions/extension_service.h" |
| 15 #include "chrome/browser/extensions/test_extension_system.h" | 15 #include "chrome/browser/extensions/test_extension_system.h" |
| 16 #import "chrome/browser/ui/browser_window.h" | 16 #import "chrome/browser/ui/browser_window.h" |
| 17 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 17 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
| 18 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
r.h" | 18 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
r.h" |
| 19 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 19 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
| 20 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
| 21 #include "chrome/common/extensions/extension.h" | |
| 22 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" |
| 22 #include "extensions/common/extension.h" |
| 23 #include "extensions/common/manifest_constants.h" | 23 #include "extensions/common/manifest_constants.h" |
| 24 #import "third_party/ocmock/OCMock/OCMock.h" |
| 24 #include "third_party/ocmock/gtest_support.h" | 25 #include "third_party/ocmock/gtest_support.h" |
| 25 #import "third_party/ocmock/OCMock/OCMock.h" | |
| 26 #include "ui/gfx/codec/png_codec.h" | 26 #include "ui/gfx/codec/png_codec.h" |
| 27 | 27 |
| 28 using extensions::Extension; | 28 using extensions::Extension; |
| 29 | 29 |
| 30 // ExtensionInstalledBubbleController with removePageActionPreview overridden | 30 // ExtensionInstalledBubbleController with removePageActionPreview overridden |
| 31 // to a no-op, because pageActions are not yet hooked up in the test browser. | 31 // to a no-op, because pageActions are not yet hooked up in the test browser. |
| 32 @interface ExtensionInstalledBubbleControllerForTest : | 32 @interface ExtensionInstalledBubbleControllerForTest : |
| 33 ExtensionInstalledBubbleController { | 33 ExtensionInstalledBubbleController { |
| 34 } | 34 } |
| 35 | 35 |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 int minHeight = extension_installed_bubble::kIconSize + | 304 int minHeight = extension_installed_bubble::kIconSize + |
| 305 (2 * extension_installed_bubble::kOuterVerticalMargin); | 305 (2 * extension_installed_bubble::kOuterVerticalMargin); |
| 306 EXPECT_GT(height, minHeight); | 306 EXPECT_GT(height, minHeight); |
| 307 | 307 |
| 308 // Make sure the "show me" link is visible. | 308 // Make sure the "show me" link is visible. |
| 309 EXPECT_FALSE([[controller appInstalledShortcutLink] isHidden]); | 309 EXPECT_FALSE([[controller appInstalledShortcutLink] isHidden]); |
| 310 | 310 |
| 311 [controller close]; | 311 [controller close]; |
| 312 } | 312 } |
| 313 | 313 |
| OLD | NEW |