Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: ui/views/controls/table/table_view_unittest.cc

Issue 8655001: views: Move table and tree directories to ui/views/controls/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exclude native_widget_win_unittest too Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/table/table_view_observer.h ('k') | ui/views/controls/tree/tree_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // For WinDDK ATL compatibility, these ATL headers must come first. 5 // For WinDDK ATL compatibility, these ATL headers must come first.
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <atlbase.h> // NOLINT 10 #include <atlbase.h> // NOLINT
11 #include <atlwin.h> // NOLINT 11 #include <atlwin.h> // NOLINT
12 #endif 12 #endif
13 13
14 #include <vector> // NOLINT 14 #include <vector> // NOLINT
15 15
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/message_loop.h" 17 #include "base/message_loop.h"
18 #include "base/string_number_conversions.h" 18 #include "base/string_number_conversions.h"
19 #include "base/utf_string_conversions.h" 19 #include "base/utf_string_conversions.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 #include "ui/base/models/table_model.h" 21 #include "ui/base/models/table_model.h"
22 #include "ui/base/models/table_model_observer.h" 22 #include "ui/base/models/table_model_observer.h"
23 #include "ui/views/controls/table/table_view.h"
24 #include "ui/views/controls/table/table_view2.h"
23 #include "ui/views/widget/widget.h" 25 #include "ui/views/widget/widget.h"
24 #include "ui/views/widget/widget_delegate.h" 26 #include "ui/views/widget/widget_delegate.h"
25 #include "views/controls/table/table_view.h"
26 #include "views/controls/table/table_view2.h"
27 27
28 // Put the tests in the views namespace to make it easier to declare them as 28 // Put the tests in the views namespace to make it easier to declare them as
29 // friend classes. 29 // friend classes.
30 namespace views { 30 namespace views {
31 31
32 // TestTableModel -------------------------------------------------------------- 32 // TestTableModel --------------------------------------------------------------
33 33
34 // Trivial TableModel implementation that is backed by a vector of vectors. 34 // Trivial TableModel implementation that is backed by a vector of vectors.
35 // Provides methods for adding/removing/changing the contents that notify the 35 // Provides methods for adding/removing/changing the contents that notify the
36 // observer appropriately. 36 // observer appropriately.
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 638
639 table_->FocusRow(2); 639 table_->FocusRow(2);
640 EXPECT_EQ(2, table_->GetFirstFocusedRow()); 640 EXPECT_EQ(2, table_->GetFirstFocusedRow());
641 641
642 table_->ClearRowFocus(); 642 table_->ClearRowFocus();
643 EXPECT_EQ(-1, table_->GetFirstSelectedRow()); 643 EXPECT_EQ(-1, table_->GetFirstSelectedRow());
644 } 644 }
645 #endif 645 #endif
646 646
647 } // namespace views 647 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/table/table_view_observer.h ('k') | ui/views/controls/tree/tree_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698