OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/content_settings/content_setting_bubble_cocoa.h
" | 5 #import "chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/debug/debugger.h" | 9 #include "base/debug/debugger.h" |
10 #include "base/mac/scoped_nsautorelease_pool.h" | 10 #include "base/mac/scoped_nsautorelease_pool.h" |
11 #include "base/memory/scoped_nsobject.h" | 11 #include "base/memory/scoped_nsobject.h" |
12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
13 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" | 13 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" |
14 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h" | 14 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h" |
15 #include "chrome/common/content_settings_types.h" | 15 #include "chrome/common/content_settings_types.h" |
16 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
17 #include "content/test/test_browser_thread.h" | 17 #include "content/test/test_browser_thread.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
| 20 using content::BrowserThread; |
| 21 |
20 namespace { | 22 namespace { |
21 | 23 |
22 class DummyContentSettingBubbleModel : public ContentSettingBubbleModel { | 24 class DummyContentSettingBubbleModel : public ContentSettingBubbleModel { |
23 public: | 25 public: |
24 DummyContentSettingBubbleModel(TabContentsWrapper* tab_contents, | 26 DummyContentSettingBubbleModel(TabContentsWrapper* tab_contents, |
25 Profile* profile, | 27 Profile* profile, |
26 ContentSettingsType content_type) | 28 ContentSettingsType content_type) |
27 : ContentSettingBubbleModel(tab_contents, profile, content_type) { | 29 : ContentSettingBubbleModel(tab_contents, profile, content_type) { |
28 RadioGroup radio_group; | 30 RadioGroup radio_group; |
29 radio_group.default_item = 0; | 31 radio_group.default_item = 0; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 settingsType) | 85 settingsType) |
84 parentWindow:parent | 86 parentWindow:parent |
85 anchoredAt:NSMakePoint(50, 20)]; | 87 anchoredAt:NSMakePoint(50, 20)]; |
86 EXPECT_TRUE(controller != nil); | 88 EXPECT_TRUE(controller != nil); |
87 EXPECT_TRUE([[controller window] isVisible]); | 89 EXPECT_TRUE([[controller window] isVisible]); |
88 [parent.get() close]; | 90 [parent.get() close]; |
89 } | 91 } |
90 } | 92 } |
91 | 93 |
92 } // namespace | 94 } // namespace |
OLD | NEW |