OLD | NEW |
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/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/test/trace_event_analyzer.h" | 10 #include "base/test/trace_event_analyzer.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 return true; | 162 return true; |
163 } | 163 } |
164 | 164 |
165 protected: | 165 protected: |
166 base::FilePath gpu_test_dir_; | 166 base::FilePath gpu_test_dir_; |
167 scoped_ptr<TraceAnalyzer> analyzer_; | 167 scoped_ptr<TraceAnalyzer> analyzer_; |
168 std::string category_patterns_; | 168 std::string category_patterns_; |
169 std::string trace_events_json_; | 169 std::string trace_events_json_; |
170 }; | 170 }; |
171 | 171 |
172 #if defined(OS_WIN) || defined(ADDRESS_SANITIZER) | 172 #if defined(OS_WIN) || defined(ADDRESS_SANITIZER) || defined(USE_AURA) |
173 // This test is flaky on Windows. http://crbug.com/177113 | 173 // This test is flaky on Windows. http://crbug.com/177113 |
174 // Also fails under AddressSanitizer. http://crbug.com/185178 | 174 // Also fails under AddressSanitizer. http://crbug.com/185178 |
| 175 // It fundamentally doesn't test the right thing on Aura. |
| 176 // http://crbug.com/280675 |
175 #define MAYBE_AcceleratedCompositingAllowed DISABLED_AcceleratedCompositingAllow
ed | 177 #define MAYBE_AcceleratedCompositingAllowed DISABLED_AcceleratedCompositingAllow
ed |
176 #else | 178 #else |
177 #define MAYBE_AcceleratedCompositingAllowed AcceleratedCompositingAllowed | 179 #define MAYBE_AcceleratedCompositingAllowed AcceleratedCompositingAllowed |
178 #endif | 180 #endif |
179 | 181 |
180 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, MAYBE_AcceleratedCompositingAllowed) { | 182 IN_PROC_BROWSER_TEST_F(GpuFeatureTest, MAYBE_AcceleratedCompositingAllowed) { |
181 EXPECT_FALSE(GpuDataManager::GetInstance()->IsFeatureBlacklisted( | 183 EXPECT_FALSE(GpuDataManager::GetInstance()->IsFeatureBlacklisted( |
182 gpu::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING)); | 184 gpu::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING)); |
183 | 185 |
184 const base::FilePath url(FILE_PATH_LITERAL("feature_compositing.html")); | 186 const base::FilePath url(FILE_PATH_LITERAL("feature_compositing.html")); |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 base::StringPrintf( | 545 base::StringPrintf( |
544 "%d (resize offset %d): IOSurface width %d -> %d; Creates %d " | 546 "%d (resize offset %d): IOSurface width %d -> %d; Creates %d " |
545 "Expected %d", offset_i, offsets[offset_i], | 547 "Expected %d", offset_i, offsets[offset_i], |
546 old_width, new_width, num_creates, expected_creates); | 548 old_width, new_width, num_creates, expected_creates); |
547 } | 549 } |
548 } | 550 } |
549 } | 551 } |
550 #endif | 552 #endif |
551 | 553 |
552 } // namespace | 554 } // namespace |
OLD | NEW |