| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/gpu_util.h" | 5 #include "chrome/browser/gpu_util.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 using content::GpuFeatureType; | 8 using content::GpuFeatureType; |
| 9 | 9 |
| 10 TEST(GpuUtilsTest, GpuFeatureTypFromString) { | 10 TEST(GpuUtilsTest, GpuFeatureTypFromString) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 content::GPU_FEATURE_TYPE_MULTISAMPLING)).c_str(), | 55 content::GPU_FEATURE_TYPE_MULTISAMPLING)).c_str(), |
| 56 "webgl,multisampling"); | 56 "webgl,multisampling"); |
| 57 | 57 |
| 58 std::string tmp; | 58 std::string tmp; |
| 59 tmp = gpu_util::GpuFeatureTypeToString( | 59 tmp = gpu_util::GpuFeatureTypeToString( |
| 60 static_cast<content::GpuFeatureType>( | 60 static_cast<content::GpuFeatureType>( |
| 61 content::GPU_FEATURE_TYPE_WEBGL | | 61 content::GPU_FEATURE_TYPE_WEBGL | |
| 62 content::GPU_FEATURE_TYPE_ALL)); | 62 content::GPU_FEATURE_TYPE_ALL)); |
| 63 EXPECT_STREQ(tmp.c_str(), "all"); | 63 EXPECT_STREQ(tmp.c_str(), "all"); |
| 64 } | 64 } |
| OLD | NEW |