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

Side by Side Diff: ash/system/date/system_info_default_view_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/date/system_info_default_view.cc ('k') | ash/system/date/tray_date.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/date/system_info_default_view.h" 5 #include "ash/system/date/system_info_default_view.h"
6 #include "ash/common/system/tray/tray_constants.h" 6 #include "ash/system/tray/tray_constants.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/views/view.h" 8 #include "ui/views/view.h"
9 9
10 namespace ash { 10 namespace ash {
11 11
12 class SystemInfoDefaultViewTest : public testing::Test { 12 class SystemInfoDefaultViewTest : public testing::Test {
13 public: 13 public:
14 SystemInfoDefaultViewTest() {} 14 SystemInfoDefaultViewTest() {}
15 15
16 protected: 16 protected:
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 TEST_F(SystemInfoDefaultViewTest, PreferredWidthGreaterThanThreeButtonWidths) { 68 TEST_F(SystemInfoDefaultViewTest, PreferredWidthGreaterThanThreeButtonWidths) {
69 const int kPreferredWidth = 69 const int kPreferredWidth =
70 kMenuButtonSize + (kSeparatorWidth + kMenuButtonSize) * 2 + 1; 70 kMenuButtonSize + (kSeparatorWidth + kMenuButtonSize) * 2 + 1;
71 const int effective_width = CalculateDateViewWidth(kPreferredWidth); 71 const int effective_width = CalculateDateViewWidth(kPreferredWidth);
72 72
73 EXPECT_EQ(effective_width, 73 EXPECT_EQ(effective_width,
74 kMenuButtonSize + (kSeparatorWidth + kMenuButtonSize) * 2); 74 kMenuButtonSize + (kSeparatorWidth + kMenuButtonSize) * 2);
75 } 75 }
76 76
77 } // namespace ash 77 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/date/system_info_default_view.cc ('k') | ash/system/date/tray_date.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698