OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/gpu/gpu_control_list.h" | 5 #include "gpu/config/gpu_control_list.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
7 | 7 |
8 namespace content { | 8 namespace gpu { |
9 | 9 |
10 class OsInfoTest : public testing::Test { | 10 class OsInfoTest : public testing::Test { |
11 public: | 11 public: |
12 OsInfoTest() { } | 12 OsInfoTest() { } |
13 virtual ~OsInfoTest() { } | 13 virtual ~OsInfoTest() { } |
14 | 14 |
15 typedef GpuControlList::OsInfo OsInfo; | 15 typedef GpuControlList::OsInfo OsInfo; |
16 }; | 16 }; |
17 | 17 |
18 TEST_F(OsInfoTest, ValidOsInfo) { | 18 TEST_F(OsInfoTest, ValidOsInfo) { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 EXPECT_FALSE(info.Contains(GpuControlList::kOsAndroid, "7")); | 100 EXPECT_FALSE(info.Contains(GpuControlList::kOsAndroid, "7")); |
101 EXPECT_FALSE(info.Contains(GpuControlList::kOsAny, "7")); | 101 EXPECT_FALSE(info.Contains(GpuControlList::kOsAny, "7")); |
102 EXPECT_FALSE(info.Contains(GpuControlList::kOsWin, std::string())); | 102 EXPECT_FALSE(info.Contains(GpuControlList::kOsWin, std::string())); |
103 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "6")); | 103 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "6")); |
104 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "6.1")); | 104 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "6.1")); |
105 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "7")); | 105 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "7")); |
106 EXPECT_FALSE(info.Contains(GpuControlList::kOsWin, "5")); | 106 EXPECT_FALSE(info.Contains(GpuControlList::kOsWin, "5")); |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
110 } // namespace content | 110 } // namespace gpu |
111 | 111 |
OLD | NEW |