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

Unified Diff: cc/test/paths.cc

Issue 11412289: Basic pixel tests for cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix AtExitManager registration stuff Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/paths.h ('k') | cc/test/pixel_test_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/paths.cc
diff --git a/ui/gfx/gfx_paths.cc b/cc/test/paths.cc
similarity index 80%
copy from ui/gfx/gfx_paths.cc
copy to cc/test/paths.cc
index 6fe47892ad560bf69a79445bcacc2b0bcf30ec0d..3551afb8aad564bf191110c9e065ef9e6ceac09c 100644
--- a/ui/gfx/gfx_paths.cc
+++ b/cc/test/paths.cc
@@ -1,15 +1,15 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/gfx/gfx_paths.h"
+#include "cc/test/paths.h"
-#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h"
-namespace gfx {
+namespace cc {
+namespace test {
bool PathProvider(int key, FilePath* result) {
FilePath cur;
@@ -20,8 +20,7 @@ bool PathProvider(int key, FilePath* result) {
case DIR_TEST_DATA:
if (!PathService::Get(base::DIR_SOURCE_ROOT, &cur))
return false;
- cur = cur.Append(FILE_PATH_LITERAL("ui"));
- cur = cur.Append(FILE_PATH_LITERAL("gfx"));
+ cur = cur.Append(FILE_PATH_LITERAL("cc"));
cur = cur.Append(FILE_PATH_LITERAL("test"));
cur = cur.Append(FILE_PATH_LITERAL("data"));
if (!file_util::PathExists(cur)) // we don't want to create this
@@ -41,4 +40,5 @@ void RegisterPathProvider() {
PathService::RegisterProvider(PathProvider, PATH_START, PATH_END);
}
-} // namespace gfx
+} // namespace test
+} // namespace cc
« no previous file with comments | « cc/test/paths.h ('k') | cc/test/pixel_test_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698