OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/ui/browser.h" |
9 #include "chrome/browser/ui/global_error/global_error.h" | 9 #include "chrome/browser/ui/global_error/global_error.h" |
10 #include "chrome/browser/ui/global_error/global_error_service.h" | 10 #include "chrome/browser/ui/global_error/global_error_service.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 virtual bool HasBubbleView() OVERRIDE { return false; } | 36 virtual bool HasBubbleView() OVERRIDE { return false; } |
37 virtual int GetBubbleViewIconResourceID() OVERRIDE { | 37 virtual int GetBubbleViewIconResourceID() OVERRIDE { |
38 ADD_FAILURE(); | 38 ADD_FAILURE(); |
39 return 0; | 39 return 0; |
40 } | 40 } |
41 virtual string16 GetBubbleViewTitle() OVERRIDE { | 41 virtual string16 GetBubbleViewTitle() OVERRIDE { |
42 ADD_FAILURE(); | 42 ADD_FAILURE(); |
43 return string16(); | 43 return string16(); |
44 } | 44 } |
45 virtual string16 GetBubbleViewMessage() OVERRIDE { | 45 virtual std::vector<string16> GetBubbleViewMessages() OVERRIDE { |
46 ADD_FAILURE(); | 46 ADD_FAILURE(); |
47 return string16(); | 47 return std::vector<string16>(); |
48 } | 48 } |
49 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE { | 49 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE { |
50 ADD_FAILURE(); | 50 ADD_FAILURE(); |
51 return string16(); | 51 return string16(); |
52 } | 52 } |
53 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE { | 53 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE { |
54 ADD_FAILURE(); | 54 ADD_FAILURE(); |
55 return string16(); | 55 return string16(); |
56 } | 56 } |
57 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE { | 57 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 class EncodingMenuModelTest : public BrowserWithTestWindowTest, | 194 class EncodingMenuModelTest : public BrowserWithTestWindowTest, |
195 public MenuModelTest { | 195 public MenuModelTest { |
196 }; | 196 }; |
197 | 197 |
198 TEST_F(EncodingMenuModelTest, IsCommandIdCheckedWithNoTabs) { | 198 TEST_F(EncodingMenuModelTest, IsCommandIdCheckedWithNoTabs) { |
199 EncodingMenuModel model(browser()); | 199 EncodingMenuModel model(browser()); |
200 ASSERT_EQ(NULL, browser()->tab_strip_model()->GetActiveWebContents()); | 200 ASSERT_EQ(NULL, browser()->tab_strip_model()->GetActiveWebContents()); |
201 EXPECT_FALSE(model.IsCommandIdChecked(IDC_ENCODING_ISO88591)); | 201 EXPECT_FALSE(model.IsCommandIdChecked(IDC_ENCODING_ISO88591)); |
202 } | 202 } |
OLD | NEW |