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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 #include <stddef.h> 6 #include <stddef.h>
7 7
8 #include "base/i18n/rtl.h" 8 #include "base/i18n/rtl.h"
9 #import "base/mac/scoped_nsobject.h" 9 #import "base/mac/scoped_nsobject.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/test/scoped_feature_list.h" 13 #include "base/test/scoped_feature_list.h"
14 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
15 #include "chrome/browser/ui/cocoa/l10n_util.h" 14 #include "chrome/browser/ui/cocoa/l10n_util.h"
16 #import "chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.h" 15 #import "chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.h"
17 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" 16 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h"
18 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" 17 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h"
19 #import "chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h" 18 #import "chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h"
20 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" 19 #import "chrome/browser/ui/cocoa/tabs/tab_view.h"
20 #include "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #import "testing/gtest_mac.h" 22 #import "testing/gtest_mac.h"
23 #include "testing/platform_test.h" 23 #include "testing/platform_test.h"
24 #include "ui/base/resource/resource_bundle.h" 24 #include "ui/base/resource/resource_bundle.h"
25 #include "ui/resources/grit/ui_resources.h" 25 #include "ui/resources/grit/ui_resources.h"
26 26
27 // Implements the target interface for the tab, which gets sent messages when 27 // Implements the target interface for the tab, which gets sent messages when
28 // the tab is clicked on by the user and when its close box is clicked. 28 // the tab is clicked on by the user and when its close box is clicked.
29 @interface TabControllerTestTarget : NSObject<TabControllerTarget> { 29 @interface TabControllerTestTarget : NSObject<TabControllerTarget> {
30 @private 30 @private
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 603
604 CheckLayoutAndVisibilityOfSubviewsForAllStates(true); 604 CheckLayoutAndVisibilityOfSubviewsForAllStates(true);
605 605
606 base::i18n::SetICUDefaultLocale(old_locale); 606 base::i18n::SetICUDefaultLocale(old_locale);
607 [defaults setBool:oldTextDirection forKey:appleTextDirectionDefaultsKey]; 607 [defaults setBool:oldTextDirection forKey:appleTextDirectionDefaultsKey];
608 [defaults setBool:oldRTLWritingDirection 608 [defaults setBool:oldRTLWritingDirection
609 forKey:forceRTLWritingDirectionDefaultsKey]; 609 forKey:forceRTLWritingDirectionDefaultsKey];
610 } 610 }
611 611
612 } // namespace 612 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698