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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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
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/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #import "chrome/browser/ui/browser_window.h" 13 #import "chrome/browser/ui/browser_window.h"
14 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 14 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
15 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle r.h" 15 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle r.h"
16 #import "chrome/browser/ui/cocoa/info_bubble_window.h" 16 #import "chrome/browser/ui/cocoa/info_bubble_window.h"
17 #include "chrome/common/chrome_paths.h" 17 #include "chrome/common/chrome_paths.h"
18 #include "chrome/common/extensions/extension.h" 18 #include "chrome/common/extensions/extension.h"
19 #include "chrome/common/extensions/extension_manifest_constants.h" 19 #include "chrome/common/extensions/extension_manifest_constants.h"
20 #include "third_party/ocmock/gtest_support.h" 20 #include "third_party/ocmock/gtest_support.h"
21 #import "third_party/ocmock/OCMock/OCMock.h" 21 #import "third_party/ocmock/OCMock/OCMock.h"
22 #include "webkit/glue/image_decoder.h" 22 #include "webkit/glue/image_decoder.h"
23 23
24 using extensions::Extension;
25
24 // ExtensionInstalledBubbleController with removePageActionPreview overridden 26 // ExtensionInstalledBubbleController with removePageActionPreview overridden
25 // to a no-op, because pageActions are not yet hooked up in the test browser. 27 // to a no-op, because pageActions are not yet hooked up in the test browser.
26 @interface ExtensionInstalledBubbleControllerForTest : 28 @interface ExtensionInstalledBubbleControllerForTest :
27 ExtensionInstalledBubbleController { 29 ExtensionInstalledBubbleController {
28 } 30 }
29 31
30 // Do nothing, because browser window is not set up with page actions 32 // Do nothing, because browser window is not set up with page actions
31 // for unit testing. 33 // for unit testing.
32 - (void)removePageActionPreview; 34 - (void)removePageActionPreview;
33 35
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // The bubble window goes from visible to not-visible. 223 // The bubble window goes from visible to not-visible.
222 EXPECT_TRUE([bubbleWindow isVisible]); 224 EXPECT_TRUE([bubbleWindow isVisible]);
223 [window_ close]; 225 [window_ close];
224 EXPECT_FALSE([bubbleWindow isVisible]); 226 EXPECT_FALSE([bubbleWindow isVisible]);
225 227
226 [[NSNotificationCenter defaultCenter] removeObserver:observer]; 228 [[NSNotificationCenter defaultCenter] removeObserver:observer];
227 229
228 // Check that the appropriate notification was received. 230 // Check that the appropriate notification was received.
229 EXPECT_OCMOCK_VERIFY(observer); 231 EXPECT_OCMOCK_VERIFY(observer);
230 } 232 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698