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

Side by Side Diff: components/sad_tab/cocoa/sad_tab_controller_unittest.mm

Issue 543663002: Componentize sad_tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix url_constants.cc Created 6 years, 2 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
« no previous file with comments | « components/sad_tab/cocoa/sad_tab_controller.mm ('k') | components/sad_tab/cocoa/sad_tab_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/debug/debugger.h" 5 #include "base/debug/debugger.h"
6 #include "base/mac/scoped_nsobject.h" 6 #include "base/mac/scoped_nsobject.h"
7 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 7 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
8 #import "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h"
9 #import "chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h"
10 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 8 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
11 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
10 #import "components/sad_tab/cocoa/sad_tab_controller.h"
11 #import "components/sad_tab/cocoa/sad_tab_view.h"
12 #import "ui/base/cocoa/controls/hyperlink_text_view.h" 12 #import "ui/base/cocoa/controls/hyperlink_text_view.h"
13 13
14 @interface SadTabView (ExposedForTesting) 14 @interface SadTabView (ExposedForTesting)
15 // Implementation is below. 15 // Implementation is below.
16 - (HyperlinkTextView*)helpTextView; 16 - (HyperlinkTextView*)helpTextView;
17 @end 17 @end
18 18
19 @implementation SadTabView (ExposedForTesting) 19 @implementation SadTabView (ExposedForTesting)
20 - (HyperlinkTextView*)helpTextView { 20 - (HyperlinkTextView*)helpTextView {
21 return help_.get(); 21 return help_.get();
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Add handler for the openLearnMoreAboutCrashLink: action to NSApp for testing 104 // Add handler for the openLearnMoreAboutCrashLink: action to NSApp for testing
105 // purposes. Normally this would be sent up the responder tree correctly, but 105 // purposes. Normally this would be sent up the responder tree correctly, but
106 // since tests run in the background, key window and main window are never set 106 // since tests run in the background, key window and main window are never set
107 // on NSApplication. Adding it to NSApplication directly removes the need for 107 // on NSApplication. Adding it to NSApplication directly removes the need for
108 // worrying about what the current window with focus is. 108 // worrying about what the current window with focus is.
109 - (void)openLearnMoreAboutCrashLink:(id)sender { 109 - (void)openLearnMoreAboutCrashLink:(id)sender {
110 SadTabControllerTest::link_clicked_ = true; 110 SadTabControllerTest::link_clicked_ = true;
111 } 111 }
112 112
113 @end 113 @end
OLDNEW
« no previous file with comments | « components/sad_tab/cocoa/sad_tab_controller.mm ('k') | components/sad_tab/cocoa/sad_tab_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698