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

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

Issue 1543393002: Switch to standard integer types in chrome/browser/ui/cocoa/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 <stddef.h>
8
7 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
8 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
9 #include "base/threading/thread_restrictions.h" 11 #include "base/threading/thread_restrictions.h"
10 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
12 #include "chrome/browser/ui/browser_list.h" 14 #include "chrome/browser/ui/browser_list.h"
13 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 15 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
14 #include "chrome/browser/ui/cocoa/run_loop_testing.h" 16 #include "chrome/browser/ui/cocoa/run_loop_testing.h"
15 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
16 #include "chrome/grit/generated_resources.h" 18 #include "chrome/grit/generated_resources.h"
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 EXPECT_FALSE([controller() validateMenuItem:item]); 290 EXPECT_FALSE([controller() validateMenuItem:item]);
289 291
290 item = [menu itemAtIndex:1]; 292 item = [menu itemAtIndex:1];
291 ASSERT_EQ(@selector(switchToProfileFromMenu:), [item action]); 293 ASSERT_EQ(@selector(switchToProfileFromMenu:), [item action]);
292 EXPECT_TRUE([controller() validateMenuItem:item]); 294 EXPECT_TRUE([controller() validateMenuItem:item]);
293 295
294 item = [menu itemAtIndex:5]; 296 item = [menu itemAtIndex:5];
295 ASSERT_EQ(@selector(newProfile:), [item action]); 297 ASSERT_EQ(@selector(newProfile:), [item action]);
296 EXPECT_FALSE([controller() validateMenuItem:item]); 298 EXPECT_FALSE([controller() validateMenuItem:item]);
297 } 299 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698