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/table/table_view.h" | 5 #include "ui/views/controls/table/table_view.h" |
6 | 6 |
7 #include "base/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "ui/views/controls/table/table_grouper.h" | 10 #include "ui/views/controls/table/table_grouper.h" |
11 #include "ui/views/controls/table/table_header.h" | 11 #include "ui/views/controls/table/table_header.h" |
12 #include "ui/views/controls/table/table_view_observer.h" | 12 #include "ui/views/controls/table/table_view_observer.h" |
13 | 13 |
14 // Put the tests in the views namespace to make it easier to declare them as | 14 // Put the tests in the views namespace to make it easier to declare them as |
15 // friend classes. | 15 // friend classes. |
16 namespace views { | 16 namespace views { |
17 | 17 |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 | 763 |
764 // Extend selection to first row. | 764 // Extend selection to first row. |
765 ClickOnRow(0, ui::EF_SHIFT_DOWN); | 765 ClickOnRow(0, ui::EF_SHIFT_DOWN); |
766 EXPECT_EQ(1, observer.GetChangedCountAndClear()); | 766 EXPECT_EQ(1, observer.GetChangedCountAndClear()); |
767 EXPECT_EQ("active=2 anchor=4 selection=2 3 4", SelectionStateAsString()); | 767 EXPECT_EQ("active=2 anchor=4 selection=2 3 4", SelectionStateAsString()); |
768 | 768 |
769 table_->SetObserver(NULL); | 769 table_->SetObserver(NULL); |
770 } | 770 } |
771 | 771 |
772 } // namespace views | 772 } // namespace views |
OLD | NEW |