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

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

Issue 6676030: WinDDK ATL and MSVC express compatability (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Take out atlcheck; VC2005e compat Created 9 years, 9 months 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 | « tools/grit/grit/tool/resize.py ('k') | webkit/plugins/npapi/test/npapi_test.rc » ('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) 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 <vector> 5 // Intentional header placing, including ATL, to avoid errors
6 #include "build/build_config.h" // NOLINT
7
8 #if defined(OS_WIN)
9 #include <atlbase.h> // NOLINT
10 #include <atlwin.h> // NOLINT
11 #endif
12
13 #include <vector> // NOLINT
6 14
7 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
8 #include "base/message_loop.h" 16 #include "base/message_loop.h"
9 #include "base/string_number_conversions.h" 17 #include "base/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
11 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/base/models/table_model.h" 20 #include "ui/base/models/table_model.h"
13 #include "ui/base/models/table_model_observer.h" 21 #include "ui/base/models/table_model_observer.h"
14 #include "views/controls/table/table_view.h" 22 #include "views/controls/table/table_view.h"
15 #include "views/controls/table/table_view2.h" 23 #include "views/controls/table/table_view2.h"
16 #include "views/window/window_delegate.h" 24 #include "views/window/window_delegate.h"
17 #if defined(OS_WIN) 25 #if defined(OS_WIN)
18 #include "views/window/window_win.h" 26 #include "views/window/window_win.h"
19 #else 27 #else
20 #include "views/window/window_gtk.h" 28 #include "views/window/window_gtk.h"
21 #endif 29 #endif
22 30
23 using ui::TableModel; 31 using ui::TableModel;
24 using ui::TableModelObserver; // TODO(beng): remove these 32 using ui::TableModelObserver; // TODO(beng): remove these
25 33
26 // Put the tests in the views namespace to make it easier to declare them as 34 // Put the tests in the views namespace to make it easier to declare them as
27 // friend classes. 35 // friend classes.
28 namespace views { 36 namespace views {
29 37
30 // TestTableModel -------------------------------------------------------------- 38 // TestTableModel --------------------------------------------------------------
31 39
32 // Trivial TableModel implementation that is backed by a vector of vectors. 40 // Trivial TableModel implementation that is backed by a vector of vectors.
33 // Provides methods for adding/removing/changing the contents that notify the 41 // Provides methods for adding/removing/changing the contents that notify the
34 // observer appropriately. 42 // observer appropriately.
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 632
625 table_->FocusRow(2); 633 table_->FocusRow(2);
626 EXPECT_EQ(2, table_->GetFirstFocusedRow()); 634 EXPECT_EQ(2, table_->GetFirstFocusedRow());
627 635
628 table_->ClearRowFocus(); 636 table_->ClearRowFocus();
629 EXPECT_EQ(-1, table_->GetFirstSelectedRow()); 637 EXPECT_EQ(-1, table_->GetFirstSelectedRow());
630 } 638 }
631 #endif 639 #endif
632 640
633 } // namespace views 641 } // namespace views
OLDNEW
« no previous file with comments | « tools/grit/grit/tool/resize.py ('k') | webkit/plugins/npapi/test/npapi_test.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698