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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm

Issue 1336993002: Straighten up includes of host_desktop.h/host_desktop_type.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@host_desktop_type
Patch Set: Build fixes for Windows and Mac Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/profiles/profile_menu_controller.h" 5 #import "chrome/browser/ui/cocoa/profiles/profile_menu_controller.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/threading/thread_restrictions.h" 9 #include "base/threading/thread_restrictions.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/prefs/pref_service_syncable.h" 11 #include "chrome/browser/prefs/pref_service_syncable.h"
12 #include "chrome/browser/profiles/profile_manager.h" 12 #include "chrome/browser/profiles/profile_manager.h"
13 #include "chrome/browser/ui/browser_list.h" 13 #include "chrome/browser/ui/browser_list.h"
14 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 14 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
15 #include "chrome/browser/ui/cocoa/run_loop_testing.h" 15 #include "chrome/browser/ui/cocoa/run_loop_testing.h"
16 #include "chrome/browser/ui/host_desktop.h"
16 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
17 #include "chrome/grit/generated_resources.h" 18 #include "chrome/grit/generated_resources.h"
18 #include "chrome/test/base/test_browser_window.h" 19 #include "chrome/test/base/test_browser_window.h"
19 #include "chrome/test/base/testing_profile.h" 20 #include "chrome/test/base/testing_profile.h"
20 #include "testing/gtest_mac.h" 21 #include "testing/gtest_mac.h"
21 #include "ui/base/l10n/l10n_util_mac.h" 22 #include "ui/base/l10n/l10n_util_mac.h"
22 23
23 class ProfileMenuControllerTest : public CocoaProfileTest { 24 class ProfileMenuControllerTest : public CocoaProfileTest {
24 public: 25 public:
25 ProfileMenuControllerTest() { 26 ProfileMenuControllerTest() {
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 EXPECT_FALSE([controller() validateMenuItem:item]); 292 EXPECT_FALSE([controller() validateMenuItem:item]);
292 293
293 item = [menu itemAtIndex:1]; 294 item = [menu itemAtIndex:1];
294 ASSERT_EQ(@selector(switchToProfileFromMenu:), [item action]); 295 ASSERT_EQ(@selector(switchToProfileFromMenu:), [item action]);
295 EXPECT_TRUE([controller() validateMenuItem:item]); 296 EXPECT_TRUE([controller() validateMenuItem:item]);
296 297
297 item = [menu itemAtIndex:5]; 298 item = [menu itemAtIndex:5];
298 ASSERT_EQ(@selector(newProfile:), [item action]); 299 ASSERT_EQ(@selector(newProfile:), [item action]);
299 EXPECT_FALSE([controller() validateMenuItem:item]); 300 EXPECT_FALSE([controller() validateMenuItem:item]);
300 } 301 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698