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

Side by Side Diff: chrome/browser/cocoa/cookie_prompt_window_controller_unittest.mm

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "base/message_loop.h"
5 #include "base/sys_string_conversions.h" 6 #include "base/sys_string_conversions.h"
7 #include "chrome/browser/chrome_thread.h"
6 #include "chrome/browser/cocoa/cocoa_test_helper.h" 8 #include "chrome/browser/cocoa/cocoa_test_helper.h"
7 #include "chrome/browser/cocoa/cookie_prompt_window_controller.h" 9 #include "chrome/browser/cocoa/cookie_prompt_window_controller.h"
8 #include "chrome/browser/cookie_modal_dialog.h" 10 #include "chrome/browser/cookie_modal_dialog.h"
11 #include "chrome/browser/host_content_settings_map.h"
9 #include "chrome/test/testing_profile.h" 12 #include "chrome/test/testing_profile.h"
10 13
11 // A mock class which implements just enough functionality to 14 // A mock class which implements just enough functionality to
12 // act as a radio with a pre-specified selected button. 15 // act as a radio with a pre-specified selected button.
13 @interface MockRadioButtonMatrix : NSObject { 16 @interface MockRadioButtonMatrix : NSObject {
14 @private 17 @private
15 NSInteger selectedRow_; 18 NSInteger selectedRow_;
16 } 19 }
17 - (NSInteger)selectedRow; 20 - (NSInteger)selectedRow;
18 @end 21 @end
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // goes back down to 1--the controller won't do it for us. And 234 // goes back down to 1--the controller won't do it for us. And
232 // even calling setValue:forKey: again with a nil doesn't 235 // even calling setValue:forKey: again with a nil doesn't
233 // decrement it. Ugly, but otherwise valgrind complains. 236 // decrement it. Ugly, but otherwise valgrind complains.
234 [checkbox.get() release]; 237 [checkbox.get() release];
235 238
236 EXPECT_FALSE(dialog->remember()); 239 EXPECT_FALSE(dialog->remember());
237 EXPECT_FALSE(dialog->allow()); 240 EXPECT_FALSE(dialog->allow());
238 } 241 }
239 242
240 } // namespace 243 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698