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

Side by Side Diff: chrome/test/gpu/gpu_feature_browsertest.cc

Issue 10916334: Enable webgl conformance tests under content/test/gpu in content_browsertests (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: namespace fixup Created 8 years, 2 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/test/trace_event_analyzer.h" 10 #include "base/test/trace_event_analyzer.h"
11 #include "base/version.h" 11 #include "base/version.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/browser_window.h" 13 #include "chrome/browser/ui/browser_window.h"
14 #include "chrome/common/chrome_paths.h" 14 #include "chrome/common/chrome_paths.h"
15 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/test/base/in_process_browser_test.h" 16 #include "chrome/test/base/in_process_browser_test.h"
17 #include "chrome/test/base/test_launcher_utils.h" 17 #include "chrome/test/base/test_launcher_utils.h"
18 #include "chrome/test/base/tracing.h" 18 #include "chrome/test/base/tracing.h"
19 #include "chrome/test/base/ui_test_utils.h" 19 #include "chrome/test/base/ui_test_utils.h"
20 #include "content/public/browser/gpu_data_manager.h" 20 #include "content/public/browser/gpu_data_manager.h"
21 #include "content/public/common/content_switches.h" 21 #include "content/public/common/content_switches.h"
22 #include "content/public/common/gpu_info.h" 22 #include "content/public/common/gpu_info.h"
23 #include "content/public/test/browser_test_utils.h"
23 #include "content/test/gpu/gpu_test_config.h" 24 #include "content/test/gpu/gpu_test_config.h"
24 #include "content/test/gpu/test_switches.h" 25 #include "content/test/gpu/test_switches.h"
25 #include "net/base/net_util.h" 26 #include "net/base/net_util.h"
26 #include "ui/gl/gl_switches.h" 27 #include "ui/gl/gl_switches.h"
27 #include "ui/compositor/compositor_setup.h" 28 #include "ui/compositor/compositor_setup.h"
28 #if defined(OS_MACOSX) 29 #if defined(OS_MACOSX)
29 #include "ui/surface/io_surface_support_mac.h" 30 #include "ui/surface/io_surface_support_mac.h"
30 #endif 31 #endif
31 32
32 using content::GpuDataManager; 33 using content::GpuDataManager;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Bypass tests on GPU Linux Debug bots. 83 // Bypass tests on GPU Linux Debug bots.
83 if (gpu_enabled_) 84 if (gpu_enabled_)
84 return; 85 return;
85 #endif 86 #endif
86 87
87 FilePath test_path; 88 FilePath test_path;
88 test_path = gpu_test_dir_.Append(url); 89 test_path = gpu_test_dir_.Append(url);
89 ASSERT_TRUE(file_util::PathExists(test_path)) 90 ASSERT_TRUE(file_util::PathExists(test_path))
90 << "Missing test file: " << test_path.value(); 91 << "Missing test file: " << test_path.value();
91 92
92 ui_test_utils::DOMMessageQueue message_queue; 93 content::DOMMessageQueue message_queue;
93 if (new_tab) { 94 if (new_tab) {
94 ui_test_utils::NavigateToURLWithDisposition( 95 ui_test_utils::NavigateToURLWithDisposition(
95 browser(), net::FilePathToFileURL(test_path), 96 browser(), net::FilePathToFileURL(test_path),
96 NEW_FOREGROUND_TAB, ui_test_utils::BROWSER_TEST_NONE); 97 NEW_FOREGROUND_TAB, ui_test_utils::BROWSER_TEST_NONE);
97 } else { 98 } else {
98 ui_test_utils::NavigateToURL( 99 ui_test_utils::NavigateToURL(
99 browser(), net::FilePathToFileURL(test_path)); 100 browser(), net::FilePathToFileURL(test_path));
100 } 101 }
101 102
102 std::string result; 103 std::string result;
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 base::StringPrintf( 506 base::StringPrintf(
506 "%d (resize offset %d): IOSurface width %d -> %d; Creates %d " 507 "%d (resize offset %d): IOSurface width %d -> %d; Creates %d "
507 "Expected %d", offset_i, offsets[offset_i], 508 "Expected %d", offset_i, offsets[offset_i],
508 old_width, new_width, num_creates, expected_creates); 509 old_width, new_width, num_creates, expected_creates);
509 } 510 }
510 } 511 }
511 } 512 }
512 #endif 513 #endif
513 514
514 } // namespace anonymous 515 } // namespace anonymous
OLDNEW
« no previous file with comments | « chrome/test/gpu/gpu_crash_browsertest.cc ('k') | chrome/test/gpu/gpu_mapsgl_endurance_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698