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

Side by Side Diff: chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller_unittest.mm

Issue 24120005: Cleanup and IWYU-ify CocoaProfileTest and related tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include order Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/window_size_autosaver_unittest.mm ('k') | no next file » | 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/mac/scoped_nsobject.h" 5 #include "base/mac/scoped_nsobject.h"
6 #include "base/strings/sys_string_conversions.h" 6 #include "base/strings/sys_string_conversions.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/search/search.h" 9 #include "chrome/browser/search/search.h"
10 #include "chrome/browser/sync/glue/session_model_associator.h" 10 #include "chrome/browser/sync/glue/session_model_associator.h"
11 #include "chrome/browser/sync/profile_sync_service_factory.h" 11 #include "chrome/browser/sync/profile_sync_service_factory.h"
12 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 12 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
13 #include "chrome/browser/ui/cocoa/run_loop_testing.h" 13 #include "chrome/browser/ui/cocoa/run_loop_testing.h"
14 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" 14 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h"
15 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" 15 #import "chrome/browser/ui/cocoa/view_resizer_pong.h"
16 #import "chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.h" 16 #import "chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.h"
17 #include "chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.h" 17 #include "chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.h"
18 #include "chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h" 18 #include "chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h"
19 #include "chrome/browser/ui/toolbar/wrench_menu_model.h" 19 #include "chrome/browser/ui/toolbar/wrench_menu_model.h"
20 #include "chrome/test/base/testing_profile.h"
20 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
21 #include "grit/theme_resources.h" 22 #include "grit/theme_resources.h"
22 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
24 #include "testing/gtest_mac.h" 25 #include "testing/gtest_mac.h"
25 #include "testing/platform_test.h" 26 #include "testing/platform_test.h"
26 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
27 28
28 namespace { 29 namespace {
29 30
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 191
191 // Verify that |RecentTabsMenuModelDelegate| is deleted before the model 192 // Verify that |RecentTabsMenuModelDelegate| is deleted before the model
192 // it's observing. 193 // it's observing.
193 TEST_F(WrenchMenuControllerTest, RecentTabDeleteOrder) { 194 TEST_F(WrenchMenuControllerTest, RecentTabDeleteOrder) {
194 chrome::EnableInstantExtendedAPIForTesting(); 195 chrome::EnableInstantExtendedAPIForTesting();
195 [controller_ menuNeedsUpdate:[controller_ menu]]; 196 [controller_ menuNeedsUpdate:[controller_ menu]];
196 // If the delete order is wrong then the test will crash on exit. 197 // If the delete order is wrong then the test will crash on exit.
197 } 198 }
198 199
199 } // namespace 200 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/window_size_autosaver_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698