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

Side by Side Diff: gpu/khronos_glcts_support/khronos_glcts_test.cc

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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 unified diff | Download patch
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.cc ('k') | gpu/perftests/measurements.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "gpu/khronos_glcts_support/khronos_glcts_test.h" 5 #include "gpu/khronos_glcts_support/khronos_glcts_test.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <string> 10 #include <string>
8 11
9 #include "base/at_exit.h" 12 #include "base/at_exit.h"
10 #include "base/base_paths.h" 13 #include "base/base_paths.h"
11 #include "base/command_line.h" 14 #include "base/command_line.h"
12 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
13 #include "base/files/file_util.h" 16 #include "base/files/file_util.h"
14 #include "base/logging.h" 17 #include "base/logging.h"
15 #include "base/path_service.h" 18 #include "base/path_service.h"
16 #include "base/process/launch.h" 19 #include "base/process/launch.h"
(...skipping 26 matching lines...) Expand all
43 LOG(ERROR) << "Fail to load bot configuration"; 46 LOG(ERROR) << "Fail to load bot configuration";
44 return false; 47 return false;
45 } 48 }
46 if (!bot_config.IsValid()) { 49 if (!bot_config.IsValid()) {
47 LOG(ERROR) << "Invalid bot configuration"; 50 LOG(ERROR) << "Invalid bot configuration";
48 return false; 51 return false;
49 } 52 }
50 53
51 const ::testing::TestInfo* const test_info = 54 const ::testing::TestInfo* const test_info =
52 ::testing::UnitTest::GetInstance()->current_test_info(); 55 ::testing::UnitTest::GetInstance()->current_test_info();
53 int32 expectation = 56 int32_t expectation =
54 test_expectations.GetTestExpectation(test_info->name(), bot_config); 57 test_expectations.GetTestExpectation(test_info->name(), bot_config);
55 if (expectation != gpu::GPUTestExpectationsParser::kGpuTestPass) { 58 if (expectation != gpu::GPUTestExpectationsParser::kGpuTestPass) {
56 LOG(WARNING) << "Test " << test_info->name() << " is bypassed"; 59 LOG(WARNING) << "Test " << test_info->name() << " is bypassed";
57 return true; 60 return true;
58 } 61 }
59 62
60 base::FilePath test_path; 63 base::FilePath test_path;
61 PathService::Get(base::DIR_EXE, &test_path); 64 PathService::Get(base::DIR_EXE, &test_path);
62 base::FilePath archive(test_path.Append(FILE_PATH_LITERAL( 65 base::FilePath archive(test_path.Append(FILE_PATH_LITERAL(
63 "khronos_glcts_data"))); 66 "khronos_glcts_data")));
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 if (argc == 2) { 98 if (argc == 2) {
96 g_deqp_log_dir = base::FilePath::FromUTF8Unsafe(argv[1]); 99 g_deqp_log_dir = base::FilePath::FromUTF8Unsafe(argv[1]);
97 } 100 }
98 else { 101 else {
99 base::GetTempDir(&g_deqp_log_dir); 102 base::GetTempDir(&g_deqp_log_dir);
100 } 103 }
101 104
102 return RUN_ALL_TESTS(); 105 return RUN_ALL_TESTS();
103 } 106 }
104 107
OLDNEW
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.cc ('k') | gpu/perftests/measurements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698