/external/chromium/sdch/open-vcdiff/src/gtest/internal/ |
gtest-string.h | 88 static inline const char* ShowCString(const char* c_str) { 89 return c_str ? c_str : "(null)"; 99 static String ShowCStringQuoted(const char* c_str); 108 static const char* CloneCString(const char* c_str); 161 String(const char* c_str) : c_str_(NULL) { // NOLINT 162 *this = c_str; 191 bool operator==(const char* c_str) const { 192 return CStringEquals(c_str_, c_str); 197 bool operator!=(const char* c_str) const 218 const char* c_str() const { return c_str_; } function in class:testing::internal::String [all...] |
/external/chromium/testing/gtest/test/ |
gtest-options_test.cc | 71 EXPECT_STREQ("", UnitTestOptions::GetOutputFormat().c_str()); 76 EXPECT_STREQ("xml", UnitTestOptions::GetOutputFormat().c_str()); 81 EXPECT_STREQ(GetAbsolutePathOf(FilePath("test_detail.xml")).c_str(), 82 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); 87 EXPECT_STREQ(GetAbsolutePathOf(FilePath("filename.abc")).c_str(), 88 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); 96 GetCurrentExecutableName().c_str() + ".xml")).c_str(); 99 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); [all...] |
gtest-filepath_test.cc | 78 filepath.RemoveTrailingPathSeparator().c_str()); 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()); 130 FilePath("afile").RemoveDirectoryName().c_str()); 136 FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); 142 FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().c_str()); 148 FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); 155 .RemoveDirectoryName().c_str()); [all...] |
/external/gtest/test/ |
gtest-options_test.cc | 71 EXPECT_STREQ("", UnitTestOptions::GetOutputFormat().c_str()); 76 EXPECT_STREQ("xml", UnitTestOptions::GetOutputFormat().c_str()); 81 EXPECT_STREQ(GetAbsolutePathOf(FilePath("test_detail.xml")).c_str(), 82 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); 87 EXPECT_STREQ(GetAbsolutePathOf(FilePath("filename.abc")).c_str(), 88 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); 96 GetCurrentExecutableName().c_str() + ".xml")).c_str(); 99 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); [all...] |
gtest-filepath_test.cc | 78 filepath.RemoveTrailingPathSeparator().c_str()); 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()); 130 FilePath("afile").RemoveDirectoryName().c_str()); 136 FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); 142 FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().c_str()); 148 FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); 155 .RemoveDirectoryName().c_str()); [all...] |
/external/protobuf/gtest/include/gtest/internal/ |
gtest-string.h | 90 static String ShowCStringQuoted(const char* c_str); 99 static const char* CloneCString(const char* c_str); 114 static LPCWSTR AnsiToUtf16(const char* c_str); 193 String(const char* c_str) { // NOLINT 194 if (c_str == NULL) { 198 ConstructNonNull(c_str, strlen(c_str)); 226 ConstructNonNull(str.c_str(), str.length()); 229 operator ::std::string() const { return ::std::string(c_str(), length()); } 234 ConstructNonNull(str.c_str(), str.length()) 275 const char* c_str() const { return c_str_; } function in class:testing::internal::String 318 const char* const c_str = str.c_str(); local 323 os << c_str[i]; local [all...] |
/external/chromium/chrome/browser/content_settings/ |
content_settings_pattern_unittest.cc | 45 .CanonicalizePattern().c_str()); 47 .CanonicalizePattern().c_str()); 49 .CanonicalizePattern().c_str()); 51 .CanonicalizePattern().c_str()); 53 "file:///tmp/file.html").CanonicalizePattern().c_str()); 57 "[*.]\xC4\x87ira.com").CanonicalizePattern().c_str()); 59 "\xC4\x87ira.com").CanonicalizePattern().c_str()); 61 "file:///\xC4\x87ira.html").CanonicalizePattern().c_str()); 65 "file:///tmp/bar/../test.html").CanonicalizePattern().c_str()); 69 "*example.com").CanonicalizePattern().c_str()); [all...] |
/external/protobuf/gtest/test/ |
gtest-options_test.cc | 71 EXPECT_STREQ("", UnitTestOptions::GetOutputFormat().c_str()); 76 EXPECT_STREQ("xml", UnitTestOptions::GetOutputFormat().c_str()); 81 EXPECT_STREQ(GetAbsolutePathOf(FilePath("test_detail.xml")).c_str(), 82 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); 87 EXPECT_STREQ(GetAbsolutePathOf(FilePath("filename.abc")).c_str(), 88 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); 96 _strcmpi(output_file.c_str(), 98 FilePath("path\\gtest-options_test.xml")).c_str()) == 0 || 99 _strcmpi(output_file.c_str(), 101 FilePath("path\\gtest-options-ex_test.xml")).c_str()) == 0 | [all...] |
gtest-filepath_test.cc | 78 filepath.RemoveTrailingPathSeparator().c_str()); 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()); 126 FilePath("afile").RemoveDirectoryName().c_str()); 132 FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); 138 FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().c_str()); 144 FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); 151 .RemoveDirectoryName().c_str()); [all...] |
/external/chromium/chrome/browser/debugger/ |
devtools_remote_message_unittest.cc | 33 DevToolsRemoteMessageHeaders::kTool).c_str()); 34 ASSERT_STREQ("DevToolsService", message.tool().c_str()); 35 ASSERT_STREQ(content.c_str(), message.content().c_str()); 55 DevToolsRemoteMessageHeaders::kTool).c_str()); 58 message->tool().c_str()); 62 DevToolsRemoteMessageHeaders::kDestination).c_str()); 65 message->destination().c_str()); 69 ASSERT_STREQ(content.c_str(), message->content().c_str()); [all...] |
/external/chromium/sdch/open-vcdiff/src/gtest/ |
gtest-filepath.cc | 63 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { 64 return FilePath(String(pathname_.c_str(), pathname_.GetLength() - 4)); 76 const char* const last_sep = strrchr(c_str(), kPathSeparator); 87 const char* const last_sep = strrchr(c_str(), kPathSeparator); 88 return FilePath(last_sep ? String(c_str(), last_sep + 1 - c_str()) 104 return FilePath(String::Format("%s%c%s.%s", dir.c_str(), kPathSeparator, 105 base_name.c_str(), extension)); 107 return FilePath(String::Format("%s%c%s_%d.%s", dir.c_str(), kPathSeparator, 108 base_name.c_str(), number, extension)) [all...] |
/external/chromium/testing/gtest/include/gtest/internal/ |
gtest-string.h | 92 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()); 230 operator ::std::string() const { return ::std::string(c_str(), length()); } 234 ConstructNonNull(str.c_str(), str.length()); 237 operator ::string() const { return ::string(c_str(), length()); } 241 bool empty() const { return (c_str() != NULL) && (length() == 0); } 275 const char* c_str() const { return c_str_; } function in class:testing::internal::String 286 if (rhs.c_str() == NULL) 320 const char* const c_str = str.c_str(); local 325 os << c_str[i]; local [all...] |
/external/gtest/include/gtest/internal/ |
gtest-string.h | 92 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()); 230 operator ::std::string() const { return ::std::string(c_str(), length()); } 234 ConstructNonNull(str.c_str(), str.length()); 237 operator ::string() const { return ::string(c_str(), length()); } 241 bool empty() const { return (c_str() != NULL) && (length() == 0); } 275 const char* c_str() const { return c_str_; } function in class:testing::internal::String 286 if (rhs.c_str() == NULL) 320 const char* const c_str = str.c_str(); local 325 os << c_str[i]; local [all...] |
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
gtest-string.h | 92 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()); 230 operator ::std::string() const { return ::std::string(c_str(), length()); } 234 ConstructNonNull(str.c_str(), str.length()); 237 operator ::string() const { return ::string(c_str(), length()); } 241 bool empty() const { return (c_str() != NULL) && (length() == 0); } 275 const char* c_str() const { return c_str_; } function in class:testing::internal::String 286 if (rhs.c_str() == NULL) 320 const char* const c_str = str.c_str(); local 325 os << c_str[i]; local [all...] |
/external/chromium/net/disk_cache/ |
cache_util_win.cc | 22 HANDLE handle = FindFirstFile(name.c_str(), &data); 34 DeleteFile(current.c_str()); 47 if (!MoveFileEx(from_path.value().c_str(), to_path.value().c_str(), 0)) { 55 DeleteFiles(path.value().c_str(), L"*"); 57 RemoveDirectory(path.value().c_str()); 63 if (!DeleteFile(name.value().c_str())) { 71 name.value().c_str(), access, sharing, NULL, OPEN_EXISTING, 0, NULL));
|
/external/webrtc/src/modules/audio_processing/test/ |
unpack.cc | 84 FILE* input_file = fopen(FLAGS_input_file.c_str(), "wb"); 86 printf("Unable to open %s\n", FLAGS_input_file.c_str()); 89 FILE* output_file = fopen(FLAGS_output_file.c_str(), "wb"); 91 printf("Unable to open %s\n", FLAGS_output_file.c_str()); 94 FILE* reverse_file = fopen(FLAGS_reverse_file.c_str(), "wb"); 96 printf("Unable to open %s\n", FLAGS_reverse_file.c_str()); 99 FILE* settings_file = fopen(FLAGS_settings_file.c_str(), "wb"); 101 printf("Unable to open %s\n", FLAGS_settings_file.c_str()); 109 delay_file = fopen(FLAGS_delay_file.c_str(), "wb"); 111 printf("Unable to open %s\n", FLAGS_delay_file.c_str()); [all...] |
/external/webrtc/test/testsupport/metrics/ |
video_metrics_unittest.cc | 50 EXPECT_EQ(0, I420PSNRFromFiles(video_file_.c_str(), video_file_.c_str(), 56 EXPECT_EQ(0, I420SSIMFromFiles(video_file_.c_str(), video_file_.c_str(), 62 EXPECT_EQ(0, I420MetricsFromFiles(video_file_.c_str(), video_file_.c_str(), 72 I420PSNRFromFiles(kNonExistingFileName, video_file_.c_str(), 78 I420SSIMFromFiles(kNonExistingFileName, video_file_.c_str(), 84 I420MetricsFromFiles(kNonExistingFileName, video_file_.c_str(), 92 I420PSNRFromFiles(video_file_.c_str(), kNonExistingFileName [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
native_program.cpp | 47 lib_handle_ = dlopen(lib_name.c_str(), RTLD_NOW); 49 ALOGE("NativeProgram: Error opening library: '%s': %s", lib_name.c_str(), dlerror()); 60 process_function_ = reinterpret_cast<ProcessFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 62 ALOGE("NativeProgram: Could not find process function symbol: '%s'!", func_name.c_str()); 71 init_function_ = reinterpret_cast<InitFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 78 setvalue_function_ = reinterpret_cast<SetValueFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 85 getvalue_function_ = reinterpret_cast<GetValueFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 92 reset_function_ = reinterpret_cast<ResetFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 99 teardown_function_ = reinterpret_cast<TeardownFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 128 setvalue_function_(key.c_str(), value.c_str(), user_data_) [all...] |
/sdk/emulator/opengl/host/tools/emugen/ |
ApiGen.cpp | 55 FILE *fp = fopen(filename.c_str(), "wt"); 57 perror(filename.c_str()); 62 const char* basename = m_basename.c_str(); 78 fprintf(fp, " (%s_APIENTRY *%s_%s_proc_t) (", basename, e->name().c_str(), sideString(side)); 99 FILE *fp = fopen(filename.c_str(), "wt"); 101 perror(filename.c_str()); 106 fprintf(fp, "#ifndef __%s_%s_ftable_t_h\n", m_basename.c_str(), sideString(side)); 107 fprintf(fp, "#define __%s_%s_ftable_t_h\n", m_basename.c_str(), sideString(side)); 109 fprintf(fp, "static struct _%s_funcs_by_name {\n", m_basename.c_str()); 113 "} %s_funcs_by_name[] = {\n", m_basename.c_str()); [all...] |
/build/tools/atree/ |
fs.cpp | 25 err = stat(path.c_str(), &st); 32 int err = unlink(path.c_str()); 34 fprintf(stderr, "error deleting file %s (%s)\n", path.c_str(), 47 DIR *d = opendir(path.c_str()); 50 path.c_str(), strerror(errno)); 71 stat(full.c_str(), &stat_buf); 96 err = rmdir(path.c_str()); 98 fprintf(stderr, "error deleting directory %s (%s)\n", path.c_str(), 121 err = stat(p.c_str(), &st); 123 err = mkdir(p.c_str(), 0770) [all...] |
/external/chromium/chrome/browser/instant/ |
promo_counter.cc | 42 prefs->RegisterBooleanPref((base_key + kShowKey).c_str(), true); 43 prefs->RegisterIntegerPref((base_key + kNumSessionsKey).c_str(), 0); 44 prefs->RegisterInt64Pref((base_key + kInitialTimeKey).c_str(), 0); 66 profile_->GetPrefs()->SetBoolean((pref_key_ + kShowKey).c_str(), false); 74 show_ = prefs->GetBoolean((pref_key_ + kShowKey).c_str()); 81 int session_count = prefs->GetInteger((pref_key_ + kNumSessionsKey).c_str()); 83 prefs->GetInt64((pref_key_ + kInitialTimeKey).c_str()); 87 prefs->SetInt64((pref_key_ + kInitialTimeKey).c_str(), 95 prefs->SetInteger((pref_key_ + kNumSessionsKey).c_str(), session_count + 1); 105 profile_->GetPrefs()->SetBoolean((pref_key_ + kShowKey).c_str(), false) [all...] |
/external/compiler-rt/lib/asan/output_tests/ |
shared-lib-test.cc | 25 printf("opening %s ... \n", path.c_str()); 26 void *lib = dlopen(path.c_str(), RTLD_NOW);
|
/external/openfst/src/include/fst/ |
icu.h | 69 const char *c_str = str.c_str(); local 73 U8_NEXT(c_str, i, length, c); 86 char c_str[5]; local 90 u_strToUTF8(c_str, 5, NULL, u_str.getTerminatedBuffer(), -1, error); 96 *str += c_str;
|
/external/chromium/chrome/browser/ |
process_singleton_linux_uitest.cc | 44 bool lock_exists = lstat(lock_path_.value().c_str(), &statbuf) == 0; 49 EXPECT_EQ(unlink(lock_path_.value().c_str()), 0); 108 ASSERT_EQ(0, lstat(lock_path_.value().c_str(), &statbuf)); 111 ssize_t len = readlink(lock_path_.value().c_str(), buf, PATH_MAX); 114 ASSERT_EQ(0, lstat(socket_path_.value().c_str(), &statbuf)); 117 len = readlink(socket_path_.value().c_str(), buf, PATH_MAX); 121 ASSERT_EQ(0, lstat(socket_target_path.value().c_str(), &statbuf)); 124 len = readlink(cookie_path_.value().c_str(), buf, PATH_MAX); 130 len = readlink(remote_cookie_path.value().c_str(), buf, PATH_MAX); 189 EXPECT_EQ(0, unlink(lock_path_.value().c_str())); [all...] |
/external/chromium/testing/gtest/src/ |
gtest-filepath.cc | 120 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { 121 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); 130 const char* const last_sep = strrchr(c_str(), kPathSeparator); 132 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); 163 dir = String(c_str(), last_sep + 1 - c_str()); 182 file = String::Format("%s.%s", base_name.c_str(), extension); 184 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); 196 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, 197 relative_path.c_str())); [all...] |