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

Side by Side Diff: chrome/browser/ui/cocoa/web_intent_sheet_controller_unittest.mm

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 "chrome/browser/ui/cocoa/web_intent_sheet_controller.h" 5 #import "chrome/browser/ui/cocoa/web_intent_sheet_controller.h"
6 6
7 #include "base/memory/scoped_nsobject.h" 7 #include "base/memory/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
9 #import "chrome/browser/ui/cocoa/hover_close_button.h" 9 #import "chrome/browser/ui/cocoa/hover_close_button.h"
10 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h" 10 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h"
11 #include "chrome/browser/ui/intents/web_intent_picker_model.h" 11 #include "chrome/browser/ui/intents/web_intent_picker_model.h"
12 #include "content/test/test_browser_thread.h" 12 #include "content/public/test/test_browser_thread.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/platform_test.h" 14 #include "testing/platform_test.h"
15 15
16 class WebIntentPickerSheetControllerTest : public CocoaTest { 16 class WebIntentPickerSheetControllerTest : public CocoaTest {
17 public: 17 public:
18 18
19 virtual void SetUp() { 19 virtual void SetUp() {
20 CocoaTest::SetUp(); 20 CocoaTest::SetUp();
21 controller_ = [[WebIntentPickerSheetController alloc] initWithPicker:nil]; 21 controller_ = [[WebIntentPickerSheetController alloc] initWithPicker:nil];
22 window_ = [controller_ window]; 22 window_ = [controller_ window];
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Verify "Add to Chromium" button is hooked up properly 142 // Verify "Add to Chromium" button is hooked up properly
143 ASSERT_TRUE([[[item_view subviews] objectAtIndex:3] 143 ASSERT_TRUE([[[item_view subviews] objectAtIndex:3]
144 isKindOfClass:[NSButton class]]); 144 isKindOfClass:[NSButton class]]);
145 NSButton* add_button = [[item_view subviews] objectAtIndex:3]; 145 NSButton* add_button = [[item_view subviews] objectAtIndex:3];
146 CheckButton(add_button, @selector(installExtension:)); 146 CheckButton(add_button, @selector(installExtension:));
147 147
148 // Verify we have a throbber. 148 // Verify we have a throbber.
149 ASSERT_TRUE([[[item_view subviews] objectAtIndex:4] 149 ASSERT_TRUE([[[item_view subviews] objectAtIndex:4]
150 isKindOfClass:[NSProgressIndicator class]]); 150 isKindOfClass:[NSProgressIndicator class]]);
151 } 151 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698