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

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

Issue 2290753004: Finish changing chrome/ grit includes to use qualified paths. (Closed)
Patch Set: Rebase, fix new unqualified include Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/chooser_dialog_cocoa_controller.h" 5 #import "chrome/browser/ui/cocoa/extensions/chooser_dialog_cocoa_controller.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/chooser_controller/mock_chooser_controller.h" 13 #include "chrome/browser/chooser_controller/mock_chooser_controller.h"
14 #import "chrome/browser/ui/cocoa/chooser_content_view_cocoa.h" 14 #import "chrome/browser/ui/cocoa/chooser_content_view_cocoa.h"
15 #import "chrome/browser/ui/cocoa/cocoa_profile_test.h" 15 #import "chrome/browser/ui/cocoa/cocoa_profile_test.h"
16 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" 16 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
17 #import "chrome/browser/ui/cocoa/extensions/chooser_dialog_cocoa.h" 17 #import "chrome/browser/ui/cocoa/extensions/chooser_dialog_cocoa.h"
18 #include "chrome/browser/ui/cocoa/spinner_view.h" 18 #include "chrome/browser/ui/cocoa/spinner_view.h"
19 #include "chrome/grit/generated_resources.h" 19 #include "chrome/grit/generated_resources.h"
20 #include "grit/ui_resources.h"
21 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
22 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
23 #include "testing/gtest_mac.h" 22 #include "testing/gtest_mac.h"
24 #include "ui/base/l10n/l10n_util_mac.h" 23 #include "ui/base/l10n/l10n_util_mac.h"
25 #include "ui/base/resource/resource_bundle.h" 24 #include "ui/base/resource/resource_bundle.h"
25 #include "ui/resources/grit/ui_resources.h"
26 26
27 namespace { 27 namespace {
28 28
29 // The lookup table for signal strength level image. 29 // The lookup table for signal strength level image.
30 const int kSignalStrengthLevelImageIds[5] = {IDR_SIGNAL_0_BAR, IDR_SIGNAL_1_BAR, 30 const int kSignalStrengthLevelImageIds[5] = {IDR_SIGNAL_0_BAR, IDR_SIGNAL_1_BAR,
31 IDR_SIGNAL_2_BAR, IDR_SIGNAL_3_BAR, 31 IDR_SIGNAL_2_BAR, IDR_SIGNAL_3_BAR,
32 IDR_SIGNAL_4_BAR}; 32 IDR_SIGNAL_4_BAR};
33 33
34 } // namespace 34 } // namespace
35 35
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 base::ASCIIToUTF16("c"), MockChooserController::kSignalStrengthLevel1Bar); 759 base::ASCIIToUTF16("c"), MockChooserController::kSignalStrengthLevel1Bar);
760 760
761 // Select option 0 and press "Get help" button. 761 // Select option 0 and press "Get help" button.
762 [table_view_ selectRowIndexes:[NSIndexSet indexSetWithIndex:0] 762 [table_view_ selectRowIndexes:[NSIndexSet indexSetWithIndex:0]
763 byExtendingSelection:NO]; 763 byExtendingSelection:NO];
764 EXPECT_CALL(*chooser_controller_, Select(testing::_)).Times(0); 764 EXPECT_CALL(*chooser_controller_, Select(testing::_)).Times(0);
765 EXPECT_CALL(*chooser_controller_, Cancel()).Times(0); 765 EXPECT_CALL(*chooser_controller_, Cancel()).Times(0);
766 EXPECT_CALL(*chooser_controller_, OpenHelpCenterUrl()).Times(1); 766 EXPECT_CALL(*chooser_controller_, OpenHelpCenterUrl()).Times(1);
767 [help_button_ performClick:chooser_dialog_controller_]; 767 [help_button_ performClick:chooser_dialog_controller_];
768 } 768 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698