OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/metrics/ui/screen_info_metrics_provider.h" | 5 #include "components/metrics/ui/screen_info_metrics_provider.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/macros.h" |
8 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" | 8 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
11 | 11 |
12 namespace metrics { | 12 namespace metrics { |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 const int kScreenWidth = 1024; | 16 const int kScreenWidth = 1024; |
17 const int kScreenHeight = 768; | 17 const int kScreenHeight = 768; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Check that the system profile has the correct values set. | 57 // Check that the system profile has the correct values set. |
58 const SystemProfileProto::Hardware& hardware = | 58 const SystemProfileProto::Hardware& hardware = |
59 uma_proto.system_profile().hardware(); | 59 uma_proto.system_profile().hardware(); |
60 EXPECT_EQ(kScreenWidth, hardware.primary_screen_width()); | 60 EXPECT_EQ(kScreenWidth, hardware.primary_screen_width()); |
61 EXPECT_EQ(kScreenHeight, hardware.primary_screen_height()); | 61 EXPECT_EQ(kScreenHeight, hardware.primary_screen_height()); |
62 EXPECT_EQ(kScreenScaleFactor, hardware.primary_screen_scale_factor()); | 62 EXPECT_EQ(kScreenScaleFactor, hardware.primary_screen_scale_factor()); |
63 EXPECT_EQ(kScreenCount, hardware.screen_count()); | 63 EXPECT_EQ(kScreenCount, hardware.screen_count()); |
64 } | 64 } |
65 | 65 |
66 } // namespace metrics | 66 } // namespace metrics |
OLD | NEW |