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

Side by Side Diff: chrome/browser/sync/sync_ui_util_mac_unittest.mm

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | Annotate | Revision Log
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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698