| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
| 9 #include "chrome/test/test_launcher_utils.h" | 9 #include "chrome/test/base/test_launcher_utils.h" |
| 10 #include "chrome/test/ui/ui_test.h" | 10 #include "chrome/test/ui/ui_test.h" |
| 11 #include "net/base/net_util.h" | 11 #include "net/base/net_util.h" |
| 12 #include "ui/gfx/gl/gl_implementation.h" | 12 #include "ui/gfx/gl/gl_implementation.h" |
| 13 | 13 |
| 14 class GPUUITest : public UITest { | 14 class GPUUITest : public UITest { |
| 15 protected: | 15 protected: |
| 16 GPUUITest() { | 16 GPUUITest() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 virtual void SetUp() { | 19 virtual void SetUp() { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 39 #define UITestCanLaunchWithOSMesa DISABLED_UITestCanLaunchWithOSMesa | 39 #define UITestCanLaunchWithOSMesa DISABLED_UITestCanLaunchWithOSMesa |
| 40 // http://crbug.com/76217 | 40 // http://crbug.com/76217 |
| 41 #endif | 41 #endif |
| 42 TEST_F(GPUUITest, UITestCanLaunchWithOSMesa) { | 42 TEST_F(GPUUITest, UITestCanLaunchWithOSMesa) { |
| 43 // Check the webgl test reports success and that the renderer was OSMesa. | 43 // Check the webgl test reports success and that the renderer was OSMesa. |
| 44 NavigateToURL( | 44 NavigateToURL( |
| 45 net::FilePathToFileURL(gpu_test_dir_.AppendASCII("webgl.html"))); | 45 net::FilePathToFileURL(gpu_test_dir_.AppendASCII("webgl.html"))); |
| 46 | 46 |
| 47 EXPECT_EQ(std::wstring(L"SUCCESS: Mesa OffScreen"), GetActiveTabTitle()); | 47 EXPECT_EQ(std::wstring(L"SUCCESS: Mesa OffScreen"), GetActiveTabTitle()); |
| 48 } | 48 } |
| OLD | NEW |