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

Side by Side Diff: gpu/config/gpu_control_list_os_info_unittest.cc

Issue 682743002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
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 "gpu/config/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 gpu { 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 ~OsInfoTest() override {}
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) {
19 const std::string os[] = { 19 const std::string os[] = {
20 "win", 20 "win",
21 "linux", 21 "linux",
22 "macosx", 22 "macosx",
23 "chromeos", 23 "chromeos",
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 EXPECT_FALSE(info.Contains(GpuControlList::kOsWin, std::string())); 142 EXPECT_FALSE(info.Contains(GpuControlList::kOsWin, std::string()));
143 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "6")); 143 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "6"));
144 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "6.1")); 144 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "6.1"));
145 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "7")); 145 EXPECT_TRUE(info.Contains(GpuControlList::kOsWin, "7"));
146 EXPECT_FALSE(info.Contains(GpuControlList::kOsWin, "5")); 146 EXPECT_FALSE(info.Contains(GpuControlList::kOsWin, "5"));
147 } 147 }
148 } 148 }
149 149
150 } // namespace gpu 150 } // namespace gpu
151 151
OLDNEW
« no previous file with comments | « gpu/config/gpu_control_list_number_info_unittest.cc ('k') | gpu/config/gpu_control_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698