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

Side by Side Diff: chrome/browser/cocoa/preferences_window_controller_unittest.mm

Issue 380006: Added Sync-related controls to Preferences pane under "Personal Stuff". (Closed)
Patch Set: Synced to HEAD (after failed commit). Created 11 years, 1 month 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
« no previous file with comments | « chrome/browser/cocoa/preferences_window_controller.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 6
7 #import "base/scoped_nsobject.h" 7 #import "base/scoped_nsobject.h"
8 #import "chrome/browser/cocoa/preferences_window_controller.h" 8 #import "chrome/browser/cocoa/preferences_window_controller.h"
9 #include "chrome/browser/cocoa/browser_test_helper.h" 9 #include "chrome/browser/cocoa/browser_test_helper.h"
10 #include "chrome/browser/cocoa/cocoa_test_helper.h" 10 #include "chrome/browser/cocoa/cocoa_test_helper.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 [[pref_controller_ customPagesSource] setURLStringEmptyAt:1]; 84 [[pref_controller_ customPagesSource] setURLStringEmptyAt:1];
85 85
86 // Send a notification to simulate the end of editing on a cell in the table 86 // Send a notification to simulate the end of editing on a cell in the table
87 // which should trigger validation. 87 // which should trigger validation.
88 [pref_controller_ controlTextDidEndEditing:[NSNotification 88 [pref_controller_ controlTextDidEndEditing:[NSNotification
89 notificationWithName:NSControlTextDidEndEditingNotification 89 notificationWithName:NSControlTextDidEndEditingNotification
90 object:nil]]; 90 object:nil]];
91 EXPECT_EQ(1U, [[pref_controller_ customPagesSource] countOfCustomHomePages]); 91 EXPECT_EQ(1U, [[pref_controller_ customPagesSource] countOfCustomHomePages]);
92 } 92 }
93 93
94 // TODO(akalin): Figure out how to test sync controls.
95 // TODO(akalin): Figure out how to test that sync controls are not shown
96 // when there isn't a sync service.
97
94 } // namespace 98 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/preferences_window_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698