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

Side by Side Diff: chrome/browser/wrench_menu_model_unittest.cc

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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/wrench_menu_model.h" 5 #include "chrome/browser/wrench_menu_model.h"
6 6
7 #include "chrome/app/chrome_dll_resource.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/test/browser_with_test_window_test.h" 8 #include "chrome/test/browser_with_test_window_test.h"
9 #include "chrome/test/menu_model_test.h" 9 #include "chrome/test/menu_model_test.h"
10 #include "chrome/test/testing_profile.h" 10 #include "chrome/test/testing_profile.h"
11 #include "grit/generated_resources.h" 11 #include "grit/generated_resources.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 class WrenchMenuModelTest : public BrowserWithTestWindowTest, 14 class WrenchMenuModelTest : public BrowserWithTestWindowTest,
15 public menus::AcceleratorProvider { 15 public menus::AcceleratorProvider {
16 public: 16 public:
17 // Don't handle accelerators. 17 // Don't handle accelerators.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 class EncodingMenuModelTest : public BrowserWithTestWindowTest, 97 class EncodingMenuModelTest : public BrowserWithTestWindowTest,
98 public MenuModelTest { 98 public MenuModelTest {
99 }; 99 };
100 100
101 TEST_F(EncodingMenuModelTest, IsCommandIdCheckedWithNoTabs) { 101 TEST_F(EncodingMenuModelTest, IsCommandIdCheckedWithNoTabs) {
102 EncodingMenuModel model(browser()); 102 EncodingMenuModel model(browser());
103 ASSERT_EQ(NULL, browser()->GetSelectedTabContents()); 103 ASSERT_EQ(NULL, browser()->GetSelectedTabContents());
104 EXPECT_FALSE(model.IsCommandIdChecked(IDC_ENCODING_ISO88591)); 104 EXPECT_FALSE(model.IsCommandIdChecked(IDC_ENCODING_ISO88591));
105 } 105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698