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

Side by Side Diff: chrome/test/perf/frame_rate/frame_rate_tests.cc

Issue 19052005: Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « chrome/test/chromedriver/chrome/zip.cc ('k') | chrome_frame/simple_resource_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 5 #include <map>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 printf("Test skipped: requires gpu. Pass --enable-gpu on the command " 155 printf("Test skipped: requires gpu. Pass --enable-gpu on the command "
156 "line if use of GPU is desired.\n"); 156 "line if use of GPU is desired.\n");
157 return; 157 return;
158 } 158 }
159 159
160 // Verify flag combinations. 160 // Verify flag combinations.
161 ASSERT_TRUE(HasFlag(kUseGpu) || !HasFlag(kForceGpuComposited)); 161 ASSERT_TRUE(HasFlag(kUseGpu) || !HasFlag(kForceGpuComposited));
162 ASSERT_TRUE(!HasFlag(kUseGpu) || IsGpuAvailable()); 162 ASSERT_TRUE(!HasFlag(kUseGpu) || IsGpuAvailable());
163 163
164 base::FilePath test_path = GetDataPath(name); 164 base::FilePath test_path = GetDataPath(name);
165 ASSERT_TRUE(file_util::DirectoryExists(test_path)) 165 ASSERT_TRUE(base::DirectoryExists(test_path))
166 << "Missing test directory: " << test_path.value(); 166 << "Missing test directory: " << test_path.value();
167 167
168 test_path = test_path.Append(FILE_PATH_LITERAL("test.html")); 168 test_path = test_path.Append(FILE_PATH_LITERAL("test.html"));
169 169
170 scoped_refptr<TabProxy> tab(GetActiveTab()); 170 scoped_refptr<TabProxy> tab(GetActiveTab());
171 ASSERT_TRUE(tab.get()); 171 ASSERT_TRUE(tab.get());
172 172
173 // TODO(jbates): remove this check when ref builds are updated. 173 // TODO(jbates): remove this check when ref builds are updated.
174 if (!HasFlag(kUseReferenceBuild)) 174 if (!HasFlag(kUseReferenceBuild))
175 ASSERT_TRUE(automation()->BeginTracing("test_gpu")); 175 ASSERT_TRUE(automation()->BeginTracing("test_gpu"));
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 kIsGpuCanvasTest | kInternal | kHasRedirect | kUseGpu | kDisableVsync, 318 kIsGpuCanvasTest | kInternal | kHasRedirect | kUseGpu | kDisableVsync,
319 kIsGpuCanvasTest | kUseReferenceBuild | kInternal | kHasRedirect | kUseGpu, 319 kIsGpuCanvasTest | kUseReferenceBuild | kInternal | kHasRedirect | kUseGpu,
320 kIsGpuCanvasTest | kUseReferenceBuild | kInternal | kHasRedirect | kUseGpu | 320 kIsGpuCanvasTest | kUseReferenceBuild | kInternal | kHasRedirect | kUseGpu |
321 kDisableVsync)); 321 kDisableVsync));
322 322
323 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(fireflies) 323 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(fireflies)
324 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(FishIE) 324 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(FishIE)
325 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(speedreading) 325 INTERNAL_FRAME_RATE_TEST_CANVAS_GPU(speedreading)
326 326
327 } // namespace 327 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/chrome/zip.cc ('k') | chrome_frame/simple_resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698