Home
last modified time | relevance | path

Searched refs:c_str (Results 1 – 25 of 2628) sorted by relevance

12345678910>>...106

/external/protobuf/gtest/test/
Dgtest-options_test.cc71 EXPECT_STREQ("", UnitTestOptions::GetOutputFormat().c_str()); in TEST()
76 EXPECT_STREQ("xml", UnitTestOptions::GetOutputFormat().c_str()); in TEST()
81 EXPECT_STREQ(GetAbsolutePathOf(FilePath("test_detail.xml")).c_str(), in TEST()
82 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); in TEST()
87 EXPECT_STREQ(GetAbsolutePathOf(FilePath("filename.abc")).c_str(), in TEST()
88 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); in TEST()
96 GetCurrentExecutableName().c_str() + ".xml")).c_str(); in TEST()
99 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); in TEST()
101 EXPECT_EQ(expected_output_file, output_file.c_str()); in TEST()
106 const std::string exe_str = GetCurrentExecutableName().c_str(); in TEST()
[all …]
Dgtest-filepath_test.cc78 filepath.RemoveTrailingPathSeparator().c_str()); in _rmdir()
92 posix::ChDir(original_dir.c_str());
96 const char* const cwd_without_drive = strchr(cwd.c_str(), ':');
100 EXPECT_STREQ(GTEST_PATH_SEP_, cwd.c_str());
120 EXPECT_STREQ("", FilePath("").RemoveDirectoryName().c_str()); in TEST()
126 FilePath("afile").RemoveDirectoryName().c_str()); in TEST()
132 FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); in TEST()
138 FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().c_str()); in TEST()
144 FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); in TEST()
151 .RemoveDirectoryName().c_str()); in TEST()
[all …]
/external/google-breakpad/src/testing/gtest/test/
Dgtest-options_test.cc71 EXPECT_STREQ("", UnitTestOptions::GetOutputFormat().c_str()); in TEST()
76 EXPECT_STREQ("xml", UnitTestOptions::GetOutputFormat().c_str()); in TEST()
81 EXPECT_STREQ(GetAbsolutePathOf(FilePath("test_detail.xml")).c_str(), in TEST()
82 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); in TEST()
87 EXPECT_STREQ(GetAbsolutePathOf(FilePath("filename.abc")).c_str(), in TEST()
88 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); in TEST()
96 GetCurrentExecutableName().c_str() + ".xml")).c_str(); in TEST()
99 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); in TEST()
101 EXPECT_EQ(expected_output_file, output_file.c_str()); in TEST()
106 const std::string exe_str = GetCurrentExecutableName().c_str(); in TEST()
[all …]
Dgtest-filepath_test.cc78 filepath.RemoveTrailingPathSeparator().c_str()); in _rmdir()
92 posix::ChDir(original_dir.c_str());
97 const char* const cwd_without_drive = strchr(cwd.c_str(), ':');
103 EXPECT_STREQ(GTEST_PATH_SEP_, cwd.c_str());
124 EXPECT_STREQ("", FilePath("").RemoveDirectoryName().c_str()); in TEST()
130 FilePath("afile").RemoveDirectoryName().c_str()); in TEST()
136 FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); in TEST()
142 FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().c_str()); in TEST()
148 FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); in TEST()
155 .RemoveDirectoryName().c_str()); in TEST()
[all …]
/external/webrtc/webrtc/test/testsupport/metrics/
Dvideo_metrics_unittest.cc36 remove(non_existing_file_.c_str()); // To be sure it doesn't exist. in SetUp()
41 FILE* dummy = fopen(empty_file_.c_str(), "wb"); in SetUp()
45 remove(empty_file_.c_str()); in TearDown()
56 EXPECT_EQ(0, I420PSNRFromFiles(video_file_.c_str(), video_file_.c_str(), in TEST_F()
62 EXPECT_EQ(0, I420SSIMFromFiles(video_file_.c_str(), video_file_.c_str(), in TEST_F()
68 EXPECT_EQ(0, I420MetricsFromFiles(video_file_.c_str(), video_file_.c_str(), in TEST_F()
78 I420PSNRFromFiles(non_existing_file_.c_str(), in TEST_F()
79 video_file_.c_str(), kWidth, kHeight, in TEST_F()
85 I420SSIMFromFiles(non_existing_file_.c_str(), in TEST_F()
86 video_file_.c_str(), kWidth, kHeight, in TEST_F()
[all …]
/external/google-breakpad/src/tools/windows/converter/
Dms_symbol_server_converter.cc75 if (SSCANF(identifier.c_str(), in InitializeFromString()
89 if (SSCANF(identifier.c_str(), "%08X%x", &signature_, &age_) != 2) { in InitializeFromString()
196 error, path_.c_str()); in ~AutoDeleter()
204 int error = remove(path_.c_str()); in Delete()
229 debug_or_code_file.c_str(), in LocateFile()
230 debug_or_code_id.c_str(), in LocateFile()
231 version.c_str()); in LocateFile()
238 const_cast<char *>(symbol_path_.c_str()), in LocateFile()
242 debug_or_code_file.c_str(), in LocateFile()
243 debug_or_code_id.c_str(), in LocateFile()
[all …]
/external/avb/test/
Davbtool_unittest.cc68 EXPECT_COMMAND(0, "./avbtool version > %s", path.value().c_str()); in TEST_F()
446 rootfs_path.value().c_str(), in AddHashFooterTest()
447 rootfs_path.value().c_str()); in AddHashFooterTest()
450 rootfs_path.value().c_str(), in AddHashFooterTest()
451 rootfs_path.value().c_str()); in AddHashFooterTest()
452 EXPECT_COMMAND(0, "rm -f %s.unsparse", rootfs_path.value().c_str()); in AddHashFooterTest()
465 rootfs_path.value().c_str(), in AddHashFooterTest()
467 ext_vbmeta_path.value().c_str()); in AddHashFooterTest()
501 rootfs_path.value().c_str(), in AddHashFooterTest()
506 rootfs_path.value().c_str(), in AddHashFooterTest()
[all …]
/external/webrtc/webrtc/base/
Dhttpcommon_unittest.cc27 EXPECT_STREQ(TEST_HOST, url.host().c_str()); in TEST()
29 EXPECT_STREQ(TEST_PATH, url.path().c_str()); in TEST()
30 EXPECT_STREQ(TEST_QUERY, url.query().c_str()); in TEST()
31 EXPECT_STREQ(TEST_HOST, url.address().c_str()); in TEST()
32 EXPECT_STREQ(TEST_PATH TEST_QUERY, url.full_path().c_str()); in TEST()
33 EXPECT_STREQ(TEST_URL, url.url().c_str()); in TEST()
41 EXPECT_STREQ(TEST_HOST, url.host().c_str()); in TEST()
43 EXPECT_STREQ(TEST_PATH, url.path().c_str()); in TEST()
44 EXPECT_STREQ(TEST_QUERY, url.query().c_str()); in TEST()
45 EXPECT_STREQ(TEST_HOST, url.address().c_str()); in TEST()
[all …]
/external/skia/src/sksl/
DSkSLHCodeGenerator.cpp22 , fFullName(String::printf("Gr%s", fName.c_str())) in HCodeGenerator()
74 this->writef("%s%s", prefix, s->fText.c_str()); in writeSection()
86 const char* s = section->fText.c_str(); in writeExtraConstructorParams()
129 this->writef("%s%s %s", separator, ParameterType(param->fType).c_str(), in writeMake()
130 param->fName.c_str()); in writeMake()
136 fFullName.c_str()); in writeMake()
139 this->writef("%s%s", separator, param->fName.c_str()); in writeMake()
164 this->writef(" %s(", fFullName.c_str()); in writeConstructor()
167 this->writef("%s%s %s", separator, ParameterType(param->fType).c_str(), in writeConstructor()
168 param->fName.c_str()); in writeConstructor()
[all …]
DSkSLCPPCodeGenerator.cpp17 strcmp(var.fType.fName.c_str(), "colorSpaceXform"); in needs_uniform_var()
24 , fFullName(String::printf("Gr%s", fName.c_str())) in CPPCodeGenerator()
114 const char* name = type.name().c_str(); in default_value()
151 printf("%s\n", type.name().c_str()); in writeRuntimeValue()
206 HCodeGenerator::FieldName(name.c_str()).c_str()); in writeVariableReference()
211 HCodeGenerator::FieldName(name.c_str()).c_str(), in writeVariableReference()
212 var.c_str(), in writeVariableReference()
219 const char* name = ref.fVariable.fName.c_str(); in writeVariableReference()
221 String::printf("_outer.%s()", name).c_str()); in writeVariableReference()
223 this->write(ref.fVariable.fName.c_str()); in writeVariableReference()
[all …]
/external/libchrome/base/trace_event/
Dtrace_config_unittest.cc78 EXPECT_STREQ("record-until-full", config.ToTraceOptionsString().c_str()); in TEST()
85 EXPECT_STREQ("record-continuously", config.ToTraceOptionsString().c_str()); in TEST()
92 EXPECT_STREQ("trace-to-console", config.ToTraceOptionsString().c_str()); in TEST()
100 config.ToTraceOptionsString().c_str()); in TEST()
108 config.ToTraceOptionsString().c_str()); in TEST()
116 config.ToTraceOptionsString().c_str()); in TEST()
124 config.ToTraceOptionsString().c_str()); in TEST()
135 config.ToTraceOptionsString().c_str()); in TEST()
143 EXPECT_STREQ("trace-to-console", config.ToTraceOptionsString().c_str()); in TEST()
151 EXPECT_STREQ("record-until-full", config.ToTraceOptionsString().c_str()); in TEST()
[all …]
/external/skia/src/gpu/effects/
DGrBezierEffect.cpp137 fragBuilder->codeAppendf("%s = dFdx(%s.xyz);", dklmdx.c_str(), v.fsIn()); in onEmitCode()
138 fragBuilder->codeAppendf("%s = dFdy(%s.xyz);", dklmdy.c_str(), v.fsIn()); in onEmitCode()
140 dfdx.c_str(), in onEmitCode()
141 v.fsIn(), dklmdx.c_str(), in onEmitCode()
142 v.fsIn(), dklmdx.c_str(), in onEmitCode()
143 v.fsIn(), dklmdx.c_str()); in onEmitCode()
145 dfdy.c_str(), in onEmitCode()
146 v.fsIn(), dklmdy.c_str(), in onEmitCode()
147 v.fsIn(), dklmdy.c_str(), in onEmitCode()
148 v.fsIn(), dklmdy.c_str()); in onEmitCode()
[all …]
/external/skia/src/gpu/ccpr/
DGrCCPRCubicProcessor.cpp70 SkStringPrintf("%s.x + 2 + sk_VertexID/2", proc.instanceAttrib()).c_str()); in onEmitVertexShader()
192 "M[0], M[middlerow], M[3]);", fKLMMatrix.c_str()); in onEmitGeometryShader()
196 fKLMMatrix.c_str(), fKLMMatrix.c_str()); in onEmitGeometryShader()
199 "0, 0, orientation[1]);", fKLMMatrix.c_str()); in onEmitGeometryShader()
203 fKLMDerivatives.c_str(), fKLMMatrix.c_str(), rtAdjust); in onEmitGeometryShader()
205 fKLMDerivatives.c_str(), fKLMMatrix.c_str(), rtAdjust); in onEmitGeometryShader()
207 fKLMDerivatives.c_str(), fKLMMatrix.c_str(), rtAdjust); in onEmitGeometryShader()
230 fnBody->appendf("highp vec3 klm = vec3(%s, 1) * %s;", position, fKLMMatrix.c_str()); in emitPerVertexGeometryCode()
232 fnBody->appendf("%s[0] = 3 * klm[0] * %s[0];", fGradMatrix.gsOut(), fKLMDerivatives.c_str()); in emitPerVertexGeometryCode()
234 fGradMatrix.gsOut(), fKLMDerivatives.c_str(), fKLMDerivatives.c_str()); in emitPerVertexGeometryCode()
[all …]
DGrCCPRTriangleProcessor.cpp21 SkStringPrintf("%s[sk_VertexID]", proc.instanceAttrib()).c_str()); in onEmitVertexShader()
77 SkStringPrintf("%s[(sk_VertexID+1) %% 3]", proc.instanceAttrib()).c_str()); in onEmitVertexShader()
140 f->codeAppendf("%s = fragcoord.y + vec4(-0.375, -0.125, 0.125, 0.375);", samples.c_str()); in emitShaderCoverage()
145 f->codeAppendf("%s = vec4(fragcoord.x - 0.5);", leftedge.c_str()); in emitShaderCoverage()
150 f->codeAppendf("%s = vec4(fragcoord.x + 0.5);", rightedge.c_str()); in emitShaderCoverage()
158 edgeArg.c_str(), edgeArg.c_str()); in emitShaderCoverage()
160 edgeArg.c_str(), edgeArg.c_str()); in emitShaderCoverage()
162 edgeArg.c_str(), edgeArg.c_str(), edgeArg.c_str()); in emitShaderCoverage()
163 b.appendf( "%s = max(%s, edge);", leftedge.c_str(), leftedge.c_str()); in emitShaderCoverage()
165 b.appendf( "%s = min(%s, edge);", rightedge.c_str(), rightedge.c_str()); in emitShaderCoverage()
[all …]
/external/deqp/modules/gles31/functional/
Des31fIntegerStateQueryTests.cpp787 …context, (std::string() + "max_color_texture_samples_" + verifierSuffix).c_str(), "Test GL_MAX… in init()
788 …context, (std::string() + "max_depth_texture_samples_" + verifierSuffix).c_str(), "Test GL_MAX… in init()
789 …ase(m_context, (std::string() + "max_integer_samples_" + verifierSuffix).c_str(), "Test GL_M… in init()
791 …xt, (std::string() + "texture_binding_2d_multisample_" + verifierSuffix).c_str(), "Test TEXTURE… in init()
792 …std::string() + "texture_binding_2d_multisample_array_" + verifierSuffix).c_str(), "Test TEXTURE_… in init()
793 …xt, (std::string() + "texture_binding_cube_map_array_" + verifierSuffix).c_str(), "Test TEXTURE… in init()
794 …(m_context, (std::string() + "texture_binding_buffer_" + verifierSuffix).c_str(), "Test TEXTU… in init()
796 …, (std::string() + "max_vertex_attrib_relative_offset_" + verifierSuffix).c_str(), "Test MAX_VERT… in init()
797 …context, (std::string() + "max_vertex_attrib_bindings_" + verifierSuffix).c_str(), "Test MAX_VE… in init()
798 …m_context, (std::string() + "max_vertex_attrib_stride_" + verifierSuffix).c_str(), "Test MAX_V… in init()
[all …]
/external/llvm/utils/unittest/googletest/src/
Dgtest-filepath.cc118 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { in RemoveExtension()
119 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
128 const char* const last_sep = strrchr(c_str(), kPathSeparator); in FindLastPathSeparator()
130 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); in FindLastPathSeparator()
161 dir = String(c_str(), last_sep + 1 - c_str()); in RemoveFileName()
180 file = String::Format("%s.%s", base_name.c_str(), extension); in MakeFileName()
182 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); in MakeFileName()
194 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, in ConcatPaths()
195 relative_path.c_str())); in ConcatPaths()
202 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str()); in FileOrDirectoryExists()
[all …]
/external/protobuf/gtest/src/
Dgtest-filepath.cc120 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { in RemoveExtension()
121 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
130 const char* const last_sep = strrchr(c_str(), kPathSeparator); in FindLastPathSeparator()
132 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); in FindLastPathSeparator()
163 dir = String(c_str(), last_sep + 1 - c_str()); in RemoveFileName()
182 file = String::Format("%s.%s", base_name.c_str(), extension); in MakeFileName()
184 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); in MakeFileName()
196 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, in ConcatPaths()
197 relative_path.c_str())); in ConcatPaths()
204 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str()); in FileOrDirectoryExists()
[all …]
/external/google-breakpad/src/testing/gtest/src/
Dgtest-filepath.cc120 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { in RemoveExtension()
121 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
130 const char* const last_sep = strrchr(c_str(), kPathSeparator); in FindLastPathSeparator()
132 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); in FindLastPathSeparator()
163 dir = String(c_str(), last_sep + 1 - c_str()); in RemoveFileName()
182 file = String::Format("%s.%s", base_name.c_str(), extension); in MakeFileName()
184 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); in MakeFileName()
196 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, in ConcatPaths()
197 relative_path.c_str())); in ConcatPaths()
204 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str()); in FileOrDirectoryExists()
[all …]
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/
Dgtest-filepath.cc120 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { in RemoveExtension()
121 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
130 const char* const last_sep = strrchr(c_str(), kPathSeparator); in FindLastPathSeparator()
132 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); in FindLastPathSeparator()
163 dir = String(c_str(), last_sep + 1 - c_str()); in RemoveFileName()
182 file = String::Format("%s.%s", base_name.c_str(), extension); in MakeFileName()
184 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); in MakeFileName()
196 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, in ConcatPaths()
197 relative_path.c_str())); in ConcatPaths()
204 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str()); in FileOrDirectoryExists()
[all …]
/external/webrtc/webrtc/libjingle/xmpp/
Dxmppstanzaparser_unittest.cc60 parser.Parse(fragment.c_str(), fragment.length(), false); in TEST()
70 parser.Parse(fragment.c_str(), fragment.length(), false); in TEST()
75 parser.Parse(fragment.c_str(), fragment.length(), false); in TEST()
80 parser.Parse(fragment.c_str(), fragment.length(), false); in TEST()
84 parser.Parse(fragment.c_str(), fragment.length(), false); in TEST()
89 parser.Parse(fragment.c_str(), fragment.length(), false); in TEST()
99 parser.Parse(fragment.c_str(), fragment.length(), false); in TEST()
103 parser.Parse(fragment.c_str(), fragment.length(), false); in TEST()
109 parser.Parse(fragment.c_str(), fragment.length(), false); in TEST()
115 parser.Parse(fragment.c_str(), fragment.length(), false); in TEST()
[all …]
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-string.h92 static String ShowCStringQuoted(const char* c_str);
101 static const char* CloneCString(const char* c_str);
116 static LPCWSTR AnsiToUtf16(const char* c_str);
227 ConstructNonNull(str.c_str(), str.length()); in String()
230 operator ::std::string() const { return ::std::string(c_str(), length()); } in string()
234 ConstructNonNull(str.c_str(), str.length()); in String()
237 operator ::string() const { return ::string(c_str(), length()); } in string()
241 bool empty() const { return (c_str() != NULL) && (length() == 0); } in empty()
275 const char* c_str() const { return c_str_; } in c_str() function
286 if (rhs.c_str() == NULL) {
[all …]
/external/protobuf/gtest/include/gtest/internal/
Dgtest-string.h92 static String ShowCStringQuoted(const char* c_str);
101 static const char* CloneCString(const char* c_str);
116 static LPCWSTR AnsiToUtf16(const char* c_str);
227 ConstructNonNull(str.c_str(), str.length()); in String()
230 operator ::std::string() const { return ::std::string(c_str(), length()); } in string()
234 ConstructNonNull(str.c_str(), str.length()); in String()
237 operator ::string() const { return ::string(c_str(), length()); } in string()
241 bool empty() const { return (c_str() != NULL) && (length() == 0); } in empty()
275 const char* c_str() const { return c_str_; } in c_str() function
286 if (rhs.c_str() == NULL) {
[all …]
/external/google-breakpad/src/testing/gtest/include/gtest/internal/
Dgtest-string.h92 static String ShowCStringQuoted(const char* c_str);
101 static const char* CloneCString(const char* c_str);
116 static LPCWSTR AnsiToUtf16(const char* c_str);
227 ConstructNonNull(str.c_str(), str.length()); in String()
230 operator ::std::string() const { return ::std::string(c_str(), length()); } in string()
234 ConstructNonNull(str.c_str(), str.length()); in String()
237 operator ::string() const { return ::string(c_str(), length()); } in string()
241 bool empty() const { return (c_str() != NULL) && (length() == 0); } in empty()
275 const char* c_str() const { return c_str_; } in c_str() function
286 if (rhs.c_str() == NULL) {
[all …]
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/internal/
Dgtest-string.h92 static String ShowCStringQuoted(const char* c_str);
101 static const char* CloneCString(const char* c_str);
116 static LPCWSTR AnsiToUtf16(const char* c_str);
227 ConstructNonNull(str.c_str(), str.length()); in String()
230 operator ::std::string() const { return ::std::string(c_str(), length()); } in string()
234 ConstructNonNull(str.c_str(), str.length()); in String()
237 operator ::string() const { return ::string(c_str(), length()); } in string()
241 bool empty() const { return (c_str() != NULL) && (length() == 0); } in empty()
275 const char* c_str() const { return c_str_; } in c_str() function
286 if (rhs.c_str() == NULL) {
[all …]
/external/libcxx/test/std/input.output/file.streams/fstreams/ofstream.assign/
Dnonmember_swap.pass.cpp27 std::ofstream fs1(temp1.c_str()); in main()
28 std::ofstream fs2(temp2.c_str()); in main()
36 std::ifstream fs(temp1.c_str()); in main()
43 std::remove(temp1.c_str()); in main()
45 std::ifstream fs(temp2.c_str()); in main()
52 std::remove(temp2.c_str()); in main()
54 std::wofstream fs1(temp1.c_str()); in main()
55 std::wofstream fs2(temp2.c_str()); in main()
63 std::wifstream fs(temp1.c_str()); in main()
70 std::remove(temp1.c_str()); in main()
[all …]

12345678910>>...106