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

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: Address comments: -EXPRESS define, memset always implemented, coding style 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
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 #if defined(_WIN32) || defined(_WIN64) // OS_WIN
Mark Mentovai 2011/03/17 20:43:42 Can we #include "build/build_config.h" first and t
RN 2011/03/18 09:34:24 It's sort of a gray area in the google guidelines
Mark Mentovai 2011/03/18 14:54:47 RN wrote:
6 #include <atlbase.h>
7 #include <atlwin.h>
Mark Mentovai 2011/03/17 20:43:42 With this included, don’t you need "base/win/atlch
RN 2011/03/18 09:34:24 atlcheck.h is just for headers (added more docs to
8 #endif
Mark Mentovai 2011/03/17 20:43:42 Blank line after this now.
RN 2011/03/18 09:34:24 Done.
5 #include <vector> 9 #include <vector>
6 10
7 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
8 #include "base/message_loop.h" 12 #include "base/message_loop.h"
9 #include "base/string_number_conversions.h" 13 #include "base/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
11 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/base/models/table_model.h" 16 #include "ui/base/models/table_model.h"
13 #include "ui/base/models/table_model_observer.h" 17 #include "ui/base/models/table_model_observer.h"
14 #include "views/controls/table/table_view.h" 18 #include "views/controls/table/table_view.h"
15 #include "views/controls/table/table_view2.h" 19 #include "views/controls/table/table_view2.h"
16 #include "views/window/window_delegate.h" 20 #include "views/window/window_delegate.h"
17 #if defined(OS_WIN) 21 #if defined(OS_WIN)
18 #include "views/window/window_win.h" 22 #include "views/window/window_win.h"
19 #else 23 #else
20 #include "views/window/window_gtk.h" 24 #include "views/window/window_gtk.h"
21 #endif 25 #endif
22 26
23 using ui::TableModel; 27 using ui::TableModel;
24 using ui::TableModelObserver; // TODO(beng): remove these 28 using ui::TableModelObserver; // TODO(beng): remove these
25 29
26 // Put the tests in the views namespace to make it easier to declare them as 30 // Put the tests in the views namespace to make it easier to declare them as
27 // friend classes. 31 // friend classes.
28 namespace views { 32 namespace views {
29 33
30 // TestTableModel -------------------------------------------------------------- 34 // TestTableModel --------------------------------------------------------------
31 35
32 // Trivial TableModel implementation that is backed by a vector of vectors. 36 // Trivial TableModel implementation that is backed by a vector of vectors.
33 // Provides methods for adding/removing/changing the contents that notify the 37 // Provides methods for adding/removing/changing the contents that notify the
34 // observer appropriately. 38 // observer appropriately.
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 628
625 table_->FocusRow(2); 629 table_->FocusRow(2);
626 EXPECT_EQ(2, table_->GetFirstFocusedRow()); 630 EXPECT_EQ(2, table_->GetFirstFocusedRow());
627 631
628 table_->ClearRowFocus(); 632 table_->ClearRowFocus();
629 EXPECT_EQ(-1, table_->GetFirstSelectedRow()); 633 EXPECT_EQ(-1, table_->GetFirstSelectedRow());
630 } 634 }
631 #endif 635 #endif
632 636
633 } // namespace views 637 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698