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

Side by Side Diff: content/browser/gpu/webgl_conformance_test.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
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/path_service.h" 7 #include "base/path_service.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "content/public/common/content_paths.h" 10 #include "content/public/common/content_paths.h"
(...skipping 22 matching lines...) Expand all
33 #endif 33 #endif
34 } 34 }
35 35
36 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { 36 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
37 base::FilePath webgl_conformance_path; 37 base::FilePath webgl_conformance_path;
38 PathService::Get(base::DIR_SOURCE_ROOT, &webgl_conformance_path); 38 PathService::Get(base::DIR_SOURCE_ROOT, &webgl_conformance_path);
39 webgl_conformance_path = webgl_conformance_path.Append( 39 webgl_conformance_path = webgl_conformance_path.Append(
40 FILE_PATH_LITERAL("third_party")); 40 FILE_PATH_LITERAL("third_party"));
41 webgl_conformance_path = webgl_conformance_path.Append( 41 webgl_conformance_path = webgl_conformance_path.Append(
42 FILE_PATH_LITERAL("webgl_conformance")); 42 FILE_PATH_LITERAL("webgl_conformance"));
43 ASSERT_TRUE(file_util::DirectoryExists(webgl_conformance_path)) 43 ASSERT_TRUE(base::DirectoryExists(webgl_conformance_path))
44 << "Missing conformance tests: " << webgl_conformance_path.value(); 44 << "Missing conformance tests: " << webgl_conformance_path.value();
45 45
46 PathService::Get(DIR_TEST_DATA, &test_path_); 46 PathService::Get(DIR_TEST_DATA, &test_path_);
47 test_path_ = test_path_.Append(FILE_PATH_LITERAL("gpu")); 47 test_path_ = test_path_.Append(FILE_PATH_LITERAL("gpu"));
48 test_path_ = test_path_.Append(FILE_PATH_LITERAL("webgl_conformance.html")); 48 test_path_ = test_path_.Append(FILE_PATH_LITERAL("webgl_conformance.html"));
49 49
50 ASSERT_TRUE(bot_config_.LoadCurrentConfig(NULL)) 50 ASSERT_TRUE(bot_config_.LoadCurrentConfig(NULL))
51 << "Fail to load bot configuration"; 51 << "Fail to load bot configuration";
52 ASSERT_TRUE(bot_config_.IsValid()) 52 ASSERT_TRUE(bot_config_.IsValid())
53 << "Invalid bot configuration"; 53 << "Invalid bot configuration";
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 IN_PROC_BROWSER_TEST_F(WebGLConformanceTest, MANUAL_##name) { \ 88 IN_PROC_BROWSER_TEST_F(WebGLConformanceTest, MANUAL_##name) { \
89 RunTest(url, #name); \ 89 RunTest(url, #name); \
90 } 90 }
91 91
92 // The test declarations are located in webgl_conformance_test_list_autogen.h, 92 // The test declarations are located in webgl_conformance_test_list_autogen.h,
93 // because the list is automatically generated by a script. 93 // because the list is automatically generated by a script.
94 // See: generate_webgl_conformance_test_list.py 94 // See: generate_webgl_conformance_test_list.py
95 #include "webgl_conformance_test_list_autogen.h" 95 #include "webgl_conformance_test_list_autogen.h"
96 96
97 } // namespace content 97 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/save_package.cc ('k') | content/browser/indexed_db/indexed_db_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698