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