Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm

Issue 24120005: Cleanup and IWYU-ify CocoaProfileTest and related tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include order Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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" 21 #include "chrome/common/extensions/extension.h"
22 #include "chrome/test/base/testing_profile.h"
22 #include "extensions/common/manifest_constants.h" 23 #include "extensions/common/manifest_constants.h"
23 #include "third_party/ocmock/gtest_support.h" 24 #include "third_party/ocmock/gtest_support.h"
24 #import "third_party/ocmock/OCMock/OCMock.h" 25 #import "third_party/ocmock/OCMock/OCMock.h"
25 #include "ui/gfx/codec/png_codec.h" 26 #include "ui/gfx/codec/png_codec.h"
26 27
27 using extensions::Extension; 28 using extensions::Extension;
28 29
29 // ExtensionInstalledBubbleController with removePageActionPreview overridden 30 // ExtensionInstalledBubbleController with removePageActionPreview overridden
30 // 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.
31 @interface ExtensionInstalledBubbleControllerForTest : 32 @interface ExtensionInstalledBubbleControllerForTest :
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 int minHeight = extension_installed_bubble::kIconSize + 304 int minHeight = extension_installed_bubble::kIconSize +
304 (2 * extension_installed_bubble::kOuterVerticalMargin); 305 (2 * extension_installed_bubble::kOuterVerticalMargin);
305 EXPECT_GT(height, minHeight); 306 EXPECT_GT(height, minHeight);
306 307
307 // Make sure the "show me" link is visible. 308 // Make sure the "show me" link is visible.
308 EXPECT_FALSE([[controller appInstalledShortcutLink] isHidden]); 309 EXPECT_FALSE([[controller appInstalledShortcutLink] isHidden]);
309 310
310 [controller close]; 311 [controller close];
311 } 312 }
312 313
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698