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/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/mac/scoped_nsautorelease_pool.h" | 9 #include "base/mac/scoped_nsautorelease_pool.h" |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 for (int i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i) { | 105 for (int i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i) { |
106 if (i == CONTENT_SETTINGS_TYPE_NOTIFICATIONS || | 106 if (i == CONTENT_SETTINGS_TYPE_NOTIFICATIONS || |
107 i == CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE || | 107 i == CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE || |
108 i == CONTENT_SETTINGS_TYPE_FULLSCREEN || | 108 i == CONTENT_SETTINGS_TYPE_FULLSCREEN || |
109 i == CONTENT_SETTINGS_TYPE_MOUSELOCK || | 109 i == CONTENT_SETTINGS_TYPE_MOUSELOCK || |
110 i == CONTENT_SETTINGS_TYPE_MEDIASTREAM || | 110 i == CONTENT_SETTINGS_TYPE_MEDIASTREAM || |
111 i == CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC || | 111 i == CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC || |
112 i == CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA || | 112 i == CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA || |
113 i == CONTENT_SETTINGS_TYPE_PPAPI_BROKER || | 113 i == CONTENT_SETTINGS_TYPE_PPAPI_BROKER || |
114 i == CONTENT_SETTINGS_TYPE_MIDI_SYSEX || | 114 i == CONTENT_SETTINGS_TYPE_MIDI_SYSEX || |
115 i == CONTENT_SETTINGS_TYPE_PUSH_MESSAGING) { | 115 i == CONTENT_SETTINGS_TYPE_PUSH_MESSAGING || |
| 116 i == CONTENT_SETTINGS_TYPE_SSL_CERT_DECISIONS) { |
116 // These types have no bubble. | 117 // These types have no bubble. |
117 continue; | 118 continue; |
118 } | 119 } |
119 | 120 |
120 ContentSettingsType settingsType = static_cast<ContentSettingsType>(i); | 121 ContentSettingsType settingsType = static_cast<ContentSettingsType>(i); |
121 | 122 |
122 ContentSettingBubbleController* controller = | 123 ContentSettingBubbleController* controller = |
123 CreateBubbleController(settingsType); | 124 CreateBubbleController(settingsType); |
124 EXPECT_EQ(0u, [controller mediaMenus]->size()); | 125 EXPECT_EQ(0u, [controller mediaMenus]->size()); |
125 [parent_ close]; | 126 [parent_ close]; |
(...skipping 16 matching lines...) Expand all Loading... |
142 (content::MEDIA_DEVICE_VIDEO_CAPTURE == i->second->type)); | 143 (content::MEDIA_DEVICE_VIDEO_CAPTURE == i->second->type)); |
143 EXPECT_EQ(0, [i->first numberOfItems]); | 144 EXPECT_EQ(0, [i->first numberOfItems]); |
144 EXPECT_NSEQ(title, [i->first title]); | 145 EXPECT_NSEQ(title, [i->first title]); |
145 EXPECT_FALSE([i->first isEnabled]); | 146 EXPECT_FALSE([i->first isEnabled]); |
146 } | 147 } |
147 | 148 |
148 [parent_ close]; | 149 [parent_ close]; |
149 } | 150 } |
150 | 151 |
151 } // namespace | 152 } // namespace |
OLD | NEW |