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

Side by Side Diff: ui/views/layout/box_layout_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 "ui/views/layout/box_layout.h" 5 #include "ui/views/layout/box_layout.h"
6 6
7 #include <stddef.h>
8
7 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/views/test/test_views.h" 10 #include "ui/views/test/test_views.h"
9 #include "ui/views/view.h" 11 #include "ui/views/view.h"
10 12
11 namespace views { 13 namespace views {
12 14
13 namespace { 15 namespace {
14 16
15 class BoxLayoutTest : public testing::Test { 17 class BoxLayoutTest : public testing::Test {
16 public: 18 public:
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 BoxLayout* layout = new BoxLayout(BoxLayout::kHorizontal, 0, 0, 0); 623 BoxLayout* layout = new BoxLayout(BoxLayout::kHorizontal, 0, 0, 0);
622 host_->SetLayoutManager(layout); 624 host_->SetLayoutManager(layout);
623 View* v1 = new StaticSizedView(gfx::Size(20, 10)); 625 View* v1 = new StaticSizedView(gfx::Size(20, 10));
624 host_->AddChildView(v1); 626 host_->AddChildView(v1);
625 layout->set_minimum_cross_axis_size(30); 627 layout->set_minimum_cross_axis_size(30);
626 628
627 EXPECT_EQ(gfx::Size(20, 30), layout->GetPreferredSize(host_.get())); 629 EXPECT_EQ(gfx::Size(20, 30), layout->GetPreferredSize(host_.get()));
628 } 630 }
629 631
630 } // namespace views 632 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698