OLD | NEW |
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 Loading... |
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 |
OLD | NEW |