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 "app/l10n_util.h" | |
6 #include "base/string_util.h" | 5 #include "base/string_util.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "views/controls/progress_bar.h" | 7 #include "views/controls/progress_bar.h" |
9 | 8 |
10 namespace views { | 9 namespace views { |
11 | 10 |
12 TEST(ProgressBarTest, ProgressProperty) { | 11 TEST(ProgressBarTest, ProgressProperty) { |
13 ProgressBar bar; | 12 ProgressBar bar; |
14 bar.SetProgress(-1); | 13 bar.SetProgress(-1); |
15 int progress = bar.GetProgress(); | 14 int progress = bar.GetProgress(); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 EXPECT_TRUE(bar.GetAccessibleName(&name)); | 59 EXPECT_TRUE(bar.GetAccessibleName(&name)); |
61 EXPECT_EQ(accessible_name, name); | 60 EXPECT_EQ(accessible_name, name); |
62 | 61 |
63 | 62 |
64 AccessibilityTypes::State state; | 63 AccessibilityTypes::State state; |
65 EXPECT_TRUE(bar.GetAccessibleState(&state)); | 64 EXPECT_TRUE(bar.GetAccessibleState(&state)); |
66 EXPECT_TRUE(AccessibilityTypes::STATE_READONLY & state); | 65 EXPECT_TRUE(AccessibilityTypes::STATE_READONLY & state); |
67 } | 66 } |
68 | 67 |
69 } // namespace views | 68 } // namespace views |
OLD | NEW |