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/global_error/global_error_service.h" | 5 #include "chrome/browser/ui/global_error/global_error_service.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/ui/global_error/global_error.h" | 9 #include "chrome/browser/ui/global_error/global_error.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 return 0; | 40 return 0; |
41 } | 41 } |
42 virtual string16 GetBubbleViewTitle() OVERRIDE { | 42 virtual string16 GetBubbleViewTitle() OVERRIDE { |
43 ADD_FAILURE(); | 43 ADD_FAILURE(); |
44 return string16(); | 44 return string16(); |
45 } | 45 } |
46 virtual string16 GetBubbleViewMessage() OVERRIDE { | 46 virtual string16 GetBubbleViewMessage() OVERRIDE { |
47 ADD_FAILURE(); | 47 ADD_FAILURE(); |
48 return string16(); | 48 return string16(); |
49 } | 49 } |
| 50 virtual std::vector<string16> GetBubbleViewMessages() OVERRIDE { |
| 51 ADD_FAILURE(); |
| 52 return string16(); |
| 53 } |
50 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE { | 54 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE { |
51 ADD_FAILURE(); | 55 ADD_FAILURE(); |
52 return string16(); | 56 return string16(); |
53 } | 57 } |
54 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE { | 58 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE { |
55 ADD_FAILURE(); | 59 ADD_FAILURE(); |
56 return string16(); | 60 return string16(); |
57 } | 61 } |
58 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE { | 62 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE { |
59 ADD_FAILURE(); | 63 ADD_FAILURE(); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 service.AddGlobalError(error3); | 179 service.AddGlobalError(error3); |
176 EXPECT_EQ(error3, service.GetHighestSeverityGlobalErrorWithWrenchMenuItem()); | 180 EXPECT_EQ(error3, service.GetHighestSeverityGlobalErrorWithWrenchMenuItem()); |
177 | 181 |
178 // Remove the highest-severity error. | 182 // Remove the highest-severity error. |
179 service.RemoveGlobalError(error3); | 183 service.RemoveGlobalError(error3); |
180 delete error3; | 184 delete error3; |
181 | 185 |
182 // Now error2 should be the next highest severity error. | 186 // Now error2 should be the next highest severity error. |
183 EXPECT_EQ(error2, service.GetHighestSeverityGlobalErrorWithWrenchMenuItem()); | 187 EXPECT_EQ(error2, service.GetHighestSeverityGlobalErrorWithWrenchMenuItem()); |
184 } | 188 } |
OLD | NEW |