| 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 #include "chrome/browser/sync/sync_ui_util_mac.h" | 5 #include "chrome/browser/sync/sync_ui_util_mac.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "app/l10n_util_mac.h" | 9 #include "app/l10n_util_mac.h" |
| 10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
| 11 #include "chrome/app/chrome_dll_resource.h" | 11 #include "chrome/app/chrome_command_ids.h" |
| 12 #include "chrome/browser/cocoa/cocoa_test_helper.h" | 12 #include "chrome/browser/cocoa/cocoa_test_helper.h" |
| 13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 class SyncStatusUIHelperMacTest : public CocoaTest { | 18 class SyncStatusUIHelperMacTest : public CocoaTest { |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 TEST_F(SyncStatusUIHelperMacTest, UpdateSyncItem) { | 21 TEST_F(SyncStatusUIHelperMacTest, UpdateSyncItem) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 sync_ui_util::UpdateSyncItemForStatus(syncMenuItem, NO, kStatus); | 99 sync_ui_util::UpdateSyncItemForStatus(syncMenuItem, NO, kStatus); |
| 100 EXPECT_TRUE([followingNonSeparator isEnabled]); | 100 EXPECT_TRUE([followingNonSeparator isEnabled]); |
| 101 EXPECT_FALSE([followingNonSeparator isHidden]); | 101 EXPECT_FALSE([followingNonSeparator isHidden]); |
| 102 | 102 |
| 103 sync_ui_util::UpdateSyncItemForStatus(syncMenuItem, YES, kStatus); | 103 sync_ui_util::UpdateSyncItemForStatus(syncMenuItem, YES, kStatus); |
| 104 EXPECT_TRUE([followingNonSeparator isEnabled]); | 104 EXPECT_TRUE([followingNonSeparator isEnabled]); |
| 105 EXPECT_FALSE([followingNonSeparator isHidden]); | 105 EXPECT_FALSE([followingNonSeparator isHidden]); |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace | 108 } // namespace |
| OLD | NEW |