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

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

Issue 6260001: Cleanup: Remove unneeded chrome/browser/ui/browser.h usage.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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
« no previous file with comments | « chrome/browser/ui/tabs/dock_info_win.cc ('k') | chrome/browser/ui/views/clear_data_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ui/toolbar/wrench_menu_model.h" 5 #include "chrome/browser/ui/toolbar/wrench_menu_model.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/ui/browser.h"
8 #include "chrome/test/browser_with_test_window_test.h" 9 #include "chrome/test/browser_with_test_window_test.h"
9 #include "chrome/test/menu_model_test.h" 10 #include "chrome/test/menu_model_test.h"
10 #include "chrome/test/testing_profile.h" 11 #include "chrome/test/testing_profile.h"
11 #include "grit/generated_resources.h" 12 #include "grit/generated_resources.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 class WrenchMenuModelTest : public BrowserWithTestWindowTest, 15 class WrenchMenuModelTest : public BrowserWithTestWindowTest,
15 public menus::AcceleratorProvider { 16 public menus::AcceleratorProvider {
16 public: 17 public:
17 // Don't handle accelerators. 18 // Don't handle accelerators.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 97
97 class EncodingMenuModelTest : public BrowserWithTestWindowTest, 98 class EncodingMenuModelTest : public BrowserWithTestWindowTest,
98 public MenuModelTest { 99 public MenuModelTest {
99 }; 100 };
100 101
101 TEST_F(EncodingMenuModelTest, IsCommandIdCheckedWithNoTabs) { 102 TEST_F(EncodingMenuModelTest, IsCommandIdCheckedWithNoTabs) {
102 EncodingMenuModel model(browser()); 103 EncodingMenuModel model(browser());
103 ASSERT_EQ(NULL, browser()->GetSelectedTabContents()); 104 ASSERT_EQ(NULL, browser()->GetSelectedTabContents());
104 EXPECT_FALSE(model.IsCommandIdChecked(IDC_ENCODING_ISO88591)); 105 EXPECT_FALSE(model.IsCommandIdChecked(IDC_ENCODING_ISO88591));
105 } 106 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/dock_info_win.cc ('k') | chrome/browser/ui/views/clear_data_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698