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 "ui/views/controls/slider.h" | 5 #include "ui/views/controls/slider.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "ui/base/accessibility/accessible_view_state.h" | 11 #include "ui/base/accessibility/accessible_view_state.h" |
12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
13 #include "ui/views/view.h" | 13 #include "ui/views/view.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 void ClickAt(views::View* view, int x, int y) { | 17 void ClickAt(views::View* view, int x, int y) { |
18 gfx::Point point(x, y); | 18 gfx::Point point(x, y); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 EXPECT_EQ(1.0f, slider->value()); | 67 EXPECT_EQ(1.0f, slider->value()); |
68 | 68 |
69 ClickAt(view, view->width(), 0); | 69 ClickAt(view, view->width(), 0); |
70 EXPECT_EQ(0.0f, slider->value()); | 70 EXPECT_EQ(0.0f, slider->value()); |
71 | 71 |
72 // Reset locale. | 72 // Reset locale. |
73 base::i18n::SetICUDefaultLocale(locale); | 73 base::i18n::SetICUDefaultLocale(locale); |
74 } | 74 } |
75 | 75 |
76 } // namespace views | 76 } // namespace views |
OLD | NEW |