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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm

Issue 1104813005: [Extensions Toolbar] Refactor a few test classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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) 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/extensions/browser_actions_controller.h" 5 #import "chrome/browser/ui/cocoa/extensions/browser_actions_controller.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "chrome/browser/extensions/extension_message_bubble_controller.h" 10 #include "chrome/browser/extensions/extension_message_bubble_controller.h"
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 #pragma mark Testing Methods 938 #pragma mark Testing Methods
939 939
940 - (BrowserActionButton*)buttonWithIndex:(NSUInteger)index { 940 - (BrowserActionButton*)buttonWithIndex:(NSUInteger)index {
941 return index < [buttons_ count] ? [buttons_ objectAtIndex:index] : nil; 941 return index < [buttons_ count] ? [buttons_ objectAtIndex:index] : nil;
942 } 942 }
943 943
944 - (ToolbarActionsBar*)toolbarActionsBar { 944 - (ToolbarActionsBar*)toolbarActionsBar {
945 return toolbarActionsBar_.get(); 945 return toolbarActionsBar_.get();
946 } 946 }
947 947
948 + (BrowserActionsController*)fromToolbarActionsBarDelegate:
949 (ToolbarActionsBarDelegate*)delegate {
950 return static_cast<ToolbarActionsBarBridge*>(delegate)->controller_for_test();
951 }
952
953 @end 948 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698