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 "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/common/chrome_paths.h" | 9 #include "chrome/common/chrome_paths.h" |
10 #include "chrome/test/automation/tab_proxy.h" | 10 #include "chrome/test/automation/tab_proxy.h" |
11 #include "chrome/test/base/test_launcher_utils.h" | |
12 #include "chrome/test/ui/javascript_test_util.h" | 11 #include "chrome/test/ui/javascript_test_util.h" |
13 #include "chrome/test/ui/ui_test.h" | 12 #include "chrome/test/ui/ui_test.h" |
14 #include "content/public/common/content_switches.h" | 13 #include "content/public/common/content_switches.h" |
15 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
16 #include "ui/gfx/gl/gl_implementation.h" | |
17 | 15 |
18 namespace { | 16 namespace { |
19 | 17 |
20 #if defined(OS_WIN) | |
21 const std::string& kGLImplementationName = gfx::kGLImplementationEGLName; | |
22 #else | |
23 const std::string& kGLImplementationName = gfx::kGLImplementationDesktopName; | |
24 #endif | |
25 | |
26 class WebGLConformanceTests : public UITest { | 18 class WebGLConformanceTests : public UITest { |
27 public: | 19 public: |
28 WebGLConformanceTests() { | 20 WebGLConformanceTests() { |
29 show_window_ = true; | 21 show_window_ = true; |
30 dom_automation_enabled_ = true; | 22 dom_automation_enabled_ = true; |
31 } | 23 } |
32 | 24 |
33 void SetUp() { | 25 void SetUp() { |
34 // Force the use of GPU hardware. | 26 // Force the use of GPU hardware. |
35 force_use_osmesa_ = false; | 27 force_use_osmesa_ = false; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 TEST_F(WebGLConformanceTests, name) { \ | 79 TEST_F(WebGLConformanceTests, name) { \ |
88 RunTest(url); \ | 80 RunTest(url); \ |
89 } | 81 } |
90 | 82 |
91 // The test declarations are located in webgl_conformance_test_list_autogen.h, | 83 // The test declarations are located in webgl_conformance_test_list_autogen.h, |
92 // because the list is automatically generated by a script. | 84 // because the list is automatically generated by a script. |
93 // See: generate_webgl_conformance_test_list.py | 85 // See: generate_webgl_conformance_test_list.py |
94 #include "webgl_conformance_test_list_autogen.h" | 86 #include "webgl_conformance_test_list_autogen.h" |
95 | 87 |
96 } // namespace | 88 } // namespace |
OLD | NEW |