| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |