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

Side by Side Diff: ash/system/tray/size_range_layout_unittest.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « ash/system/tray/size_range_layout.cc ('k') | ash/system/tray/special_popup_row.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ash/common/system/tray/size_range_layout.h" 5 #include "ash/system/tray/size_range_layout.h"
6 #include "base/memory/ptr_util.h" 6 #include "base/memory/ptr_util.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/views/test/test_layout_manager.h" 8 #include "ui/views/test/test_layout_manager.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 class SizeRangeLayoutTest : public testing::Test { 13 class SizeRangeLayoutTest : public testing::Test {
14 public: 14 public:
15 SizeRangeLayoutTest(); 15 SizeRangeLayoutTest();
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 child_layout->set_preferred_height_for_width(kHeight); 180 child_layout->set_preferred_height_for_width(kHeight);
181 181
182 SizeRangeLayout layout; 182 SizeRangeLayout layout;
183 EXPECT_NE(kHeight, layout.GetPreferredHeightForWidth(&host_, kWidth)); 183 EXPECT_NE(kHeight, layout.GetPreferredHeightForWidth(&host_, kWidth));
184 184
185 layout.SetLayoutManager(std::move(child_layout)); 185 layout.SetLayoutManager(std::move(child_layout));
186 EXPECT_EQ(kHeight, layout.GetPreferredHeightForWidth(&host_, kWidth)); 186 EXPECT_EQ(kHeight, layout.GetPreferredHeightForWidth(&host_, kWidth));
187 } 187 }
188 188
189 } // namespace ash 189 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/size_range_layout.cc ('k') | ash/system/tray/special_popup_row.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698