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

Side by Side Diff: ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc

Issue 1543173002: Switch to standard integer types in ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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 "base/macros.h"
5 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
6 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
7 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/views/controls/tabbed_pane/tabbed_pane.h" 10 #include "ui/views/controls/tabbed_pane/tabbed_pane.h"
10 #include "ui/views/test/views_test_base.h" 11 #include "ui/views/test/views_test_base.h"
11 12
12 using base::ASCIIToUTF16; 13 using base::ASCIIToUTF16;
13 14
14 namespace views { 15 namespace views {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Add a tab at index 0, it should not be selected automatically. 85 // Add a tab at index 0, it should not be selected automatically.
85 View* tab0 = new View(); 86 View* tab0 = new View();
86 tabbed_pane->AddTabAtIndex(0, ASCIIToUTF16("tab0"), tab0); 87 tabbed_pane->AddTabAtIndex(0, ASCIIToUTF16("tab0"), tab0);
87 EXPECT_NE(tab0, tabbed_pane->GetSelectedTab()); 88 EXPECT_NE(tab0, tabbed_pane->GetSelectedTab());
88 EXPECT_NE(0, tabbed_pane->selected_tab_index()); 89 EXPECT_NE(0, tabbed_pane->selected_tab_index());
89 } 90 }
90 91
91 } // namespace 92 } // namespace
92 93
93 } // namespace views 94 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698