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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/profile_menu_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 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "base/threading/thread_restrictions.h" 11 #include "base/threading/thread_restrictions.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/profiles/profile_attributes_entry.h" 13 #include "chrome/browser/profiles/profile_attributes_entry.h"
14 #include "chrome/browser/profiles/profile_attributes_storage.h" 14 #include "chrome/browser/profiles/profile_attributes_storage.h"
15 #include "chrome/browser/profiles/profile_manager.h" 15 #include "chrome/browser/profiles/profile_manager.h"
16 #include "chrome/browser/ui/browser_list.h" 16 #include "chrome/browser/ui/browser_list.h"
17 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 17 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h"
18 #include "chrome/browser/ui/cocoa/run_loop_testing.h" 18 #include "chrome/browser/ui/cocoa/test/run_loop_testing.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "chrome/grit/generated_resources.h" 20 #include "chrome/grit/generated_resources.h"
21 #include "chrome/test/base/test_browser_window.h" 21 #include "chrome/test/base/test_browser_window.h"
22 #include "chrome/test/base/testing_profile.h" 22 #include "chrome/test/base/testing_profile.h"
23 #include "components/sync_preferences/pref_service_syncable.h" 23 #include "components/sync_preferences/pref_service_syncable.h"
24 #include "testing/gtest_mac.h" 24 #include "testing/gtest_mac.h"
25 #include "ui/base/l10n/l10n_util_mac.h" 25 #include "ui/base/l10n/l10n_util_mac.h"
26 26
27 class ProfileMenuControllerTest : public CocoaProfileTest { 27 class ProfileMenuControllerTest : public CocoaProfileTest {
28 public: 28 public:
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 EXPECT_FALSE([controller() validateMenuItem:item]); 292 EXPECT_FALSE([controller() validateMenuItem:item]);
293 293
294 item = [menu itemAtIndex:1]; 294 item = [menu itemAtIndex:1];
295 ASSERT_EQ(@selector(switchToProfileFromMenu:), [item action]); 295 ASSERT_EQ(@selector(switchToProfileFromMenu:), [item action]);
296 EXPECT_TRUE([controller() validateMenuItem:item]); 296 EXPECT_TRUE([controller() validateMenuItem:item]);
297 297
298 item = [menu itemAtIndex:5]; 298 item = [menu itemAtIndex:5];
299 ASSERT_EQ(@selector(newProfile:), [item action]); 299 ASSERT_EQ(@selector(newProfile:), [item action]);
300 EXPECT_FALSE([controller() validateMenuItem:item]); 300 EXPECT_FALSE([controller() validateMenuItem:item]);
301 } 301 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm ('k') | chrome/browser/ui/cocoa/run_loop_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698