| 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 "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
     r.h" | 5 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
     r.h" | 
| 6 | 6 | 
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> | 
| 8 #include <stddef.h> | 8 #include <stddef.h> | 
| 9 | 9 | 
| 10 #include <memory> | 10 #include <memory> | 
| 11 | 11 | 
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" | 
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" | 
| 14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" | 
| 15 #include "base/macros.h" | 15 #include "base/macros.h" | 
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" | 
| 17 #include "base/values.h" | 17 #include "base/values.h" | 
| 18 #include "chrome/browser/extensions/api/commands/command_service.h" | 18 #include "chrome/browser/extensions/api/commands/command_service.h" | 
| 19 #include "chrome/browser/extensions/extension_service.h" | 19 #include "chrome/browser/extensions/extension_service.h" | 
| 20 #include "chrome/browser/extensions/test_extension_system.h" | 20 #include "chrome/browser/extensions/test_extension_system.h" | 
| 21 #include "chrome/browser/ui/browser_window.h" | 21 #include "chrome/browser/ui/browser_window.h" | 
| 22 #import "chrome/browser/ui/cocoa/cocoa_profile_test.h" |  | 
| 23 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 22 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 
|  | 23 #import "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" | 
| 24 #include "chrome/browser/ui/extensions/extension_installed_bubble.h" | 24 #include "chrome/browser/ui/extensions/extension_installed_bubble.h" | 
| 25 #include "chrome/browser/ui/location_bar/location_bar.h" | 25 #include "chrome/browser/ui/location_bar/location_bar.h" | 
| 26 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 26 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 
| 27 #include "chrome/common/chrome_paths.h" | 27 #include "chrome/common/chrome_paths.h" | 
| 28 #include "chrome/test/base/testing_profile.h" | 28 #include "chrome/test/base/testing_profile.h" | 
| 29 #include "components/crx_file/id_util.h" | 29 #include "components/crx_file/id_util.h" | 
| 30 #include "content/public/browser/site_instance.h" | 30 #include "content/public/browser/site_instance.h" | 
| 31 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" | 
| 32 #include "extensions/common/extension.h" | 32 #include "extensions/common/extension.h" | 
| 33 #include "extensions/common/extension_builder.h" | 33 #include "extensions/common/extension_builder.h" | 
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 376   // Make sure there is always enough room for the icon and margin. | 376   // Make sure there is always enough room for the icon and margin. | 
| 377   int minHeight = extension_installed_bubble::kIconSize + | 377   int minHeight = extension_installed_bubble::kIconSize + | 
| 378     (2 * extension_installed_bubble::kOuterVerticalMargin); | 378     (2 * extension_installed_bubble::kOuterVerticalMargin); | 
| 379   EXPECT_GT(height, minHeight); | 379   EXPECT_GT(height, minHeight); | 
| 380 | 380 | 
| 381   // Make sure the "show me" link is visible. | 381   // Make sure the "show me" link is visible. | 
| 382   EXPECT_FALSE([[controller appInstalledShortcutLink] isHidden]); | 382   EXPECT_FALSE([[controller appInstalledShortcutLink] isHidden]); | 
| 383 | 383 | 
| 384   [controller close]; | 384   [controller close]; | 
| 385 } | 385 } | 
| OLD | NEW | 
|---|