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

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

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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"
16 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
17 #import "chrome/browser/ui/cocoa/extensions/chooser_dialog_cocoa.h" 15 #import "chrome/browser/ui/cocoa/extensions/chooser_dialog_cocoa.h"
18 #include "chrome/browser/ui/cocoa/spinner_view.h" 16 #include "chrome/browser/ui/cocoa/spinner_view.h"
17 #import "chrome/browser/ui/cocoa/test/cocoa_profile_test.h"
18 #include "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
19 #include "chrome/grit/generated_resources.h" 19 #include "chrome/grit/generated_resources.h"
20 #include "skia/ext/skia_utils_mac.h" 20 #include "skia/ext/skia_utils_mac.h"
21 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 #include "testing/gtest_mac.h" 23 #include "testing/gtest_mac.h"
24 #include "ui/base/l10n/l10n_util_mac.h" 24 #include "ui/base/l10n/l10n_util_mac.h"
25 #include "ui/base/resource/resource_bundle.h" 25 #include "ui/base/resource/resource_bundle.h"
26 #include "ui/gfx/color_palette.h" 26 #include "ui/gfx/color_palette.h"
27 #include "ui/gfx/image/image.h" 27 #include "ui/gfx/image/image.h"
28 #include "ui/gfx/image/image_unittest_util.h" 28 #include "ui/gfx/image/image_unittest_util.h"
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 MockChooserController::ConnectedPairedStatus::NONE); 1220 MockChooserController::ConnectedPairedStatus::NONE);
1221 1221
1222 // Select option 0 and press "Get help" button. 1222 // Select option 0 and press "Get help" button.
1223 [table_view_ selectRowIndexes:[NSIndexSet indexSetWithIndex:0] 1223 [table_view_ selectRowIndexes:[NSIndexSet indexSetWithIndex:0]
1224 byExtendingSelection:NO]; 1224 byExtendingSelection:NO];
1225 EXPECT_CALL(*mock_chooser_controller_, Select(testing::_)).Times(0); 1225 EXPECT_CALL(*mock_chooser_controller_, Select(testing::_)).Times(0);
1226 EXPECT_CALL(*mock_chooser_controller_, Cancel()).Times(0); 1226 EXPECT_CALL(*mock_chooser_controller_, Cancel()).Times(0);
1227 EXPECT_CALL(*mock_chooser_controller_, OpenHelpCenterUrl()).Times(1); 1227 EXPECT_CALL(*mock_chooser_controller_, OpenHelpCenterUrl()).Times(1);
1228 [help_button_ performClick:chooser_dialog_controller_]; 1228 [help_button_ performClick:chooser_dialog_controller_];
1229 } 1229 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698