/external/chromium_org/chrome/browser/extensions/api/push_messaging/ |
H A D | sync_setup_helper.cc | 53 std::string file_contents; local 54 bool success = base::ReadFileToString(password_file, &file_contents); 63 Tokenize(file_contents, delimiters, &tokens);
|
/external/chromium_org/net/url_request/ |
H A D | url_fetcher_response_writer_unittest.cc | 84 std::string file_contents; local 85 EXPECT_TRUE(base::ReadFileToString(writer_->file_path(), &file_contents)); 86 EXPECT_EQ(kData, file_contents); 106 std::string file_contents; local 107 EXPECT_TRUE(base::ReadFileToString(writer_->file_path(), &file_contents)); 108 EXPECT_EQ(kData, file_contents); 122 file_contents.clear(); 123 EXPECT_TRUE(base::ReadFileToString(writer_->file_path(), &file_contents)); 124 EXPECT_EQ(data2, file_contents); 169 std::string file_contents; local [all...] |
/external/chromium_org/tools/gn/ |
H A D | function_read_file.cc | 64 std::string file_contents; local 65 if (!base::ReadFileToString(file_path, &file_contents)) { 71 return ConvertInputToValue(scope->settings(), file_contents, function,
|
/external/chromium_org/extensions/browser/ |
H A D | file_reader_unittest.cc | 63 std::string file_contents; local 64 ASSERT_TRUE(base::ReadFileToString(path, &file_contents)); 75 EXPECT_EQ(file_contents, receiver.data());
|
H A D | image_loader.cc | 80 std::string file_contents; local 82 if (path.empty() || !base::ReadFileToString(path, &file_contents)) { 87 reinterpret_cast<const unsigned char*>(file_contents.data()); 94 gfx::PNGCodec::Decode(data, file_contents.length(), bitmap);
|
/external/chromium_org/chrome/browser/extensions/api/image_writer_private/ |
H A D | removable_storage_provider_linux.cc | 32 std::string file_contents; local 35 if (!base::ReadFileToString(info_file_path, &file_contents)) { 39 base::StringToInt(file_contents, &blk_size);
|
/external/chromium_org/chrome/browser/ui/webui/ |
H A D | profiler_ui.cc | 85 std::string file_contents; variable 86 if (!base::ReadFileToString(file_path, &file_contents)) 90 response->data() = file_contents;
|
/external/chromium_org/content/browser/devtools/ |
H A D | devtools_http_handler_unittest.cc | 162 std::string file_contents; local 163 EXPECT_TRUE(base::ReadFileToString(active_port_file, &file_contents)); 165 EXPECT_TRUE(base::StringToInt(file_contents, &port));
|
/external/chromium_org/content/public/common/ |
H A D | drop_data.h | 72 std::string file_contents; member in struct:content::DropData
|
/external/chromium_org/content/browser/tracing/ |
H A D | trace_uploader.cc | 86 const std::string& file_contents, 101 if (!Compress(file_contents, kMaxUploadBytes, compressed_contents.get(), 85 DoUpload( const std::string& file_contents, UploadProgressCallback progress_callback, UploadDoneCallback done_callback) argument
|
H A D | tracing_ui.cc | 309 std::string file_contents; local 310 if (!args || args->empty() || !args->GetString(0, &file_contents)) { 358 file_contents,
|
/external/chromium_org/content/common/ |
H A D | page_state_serialization_unittest.cc | 206 std::string file_contents; local 207 if (!base::ReadFileToString(path, &file_contents)) { 213 EXPECT_TRUE(base::RemoveChars(file_contents, "\r\n", &trimmed_contents));
|
/external/chromium_org/net/ocsp/ |
H A D | nss_ocsp_unittest.cc | 81 std::string file_contents; local 84 &file_contents)); 85 ASSERT_FALSE(file_contents.empty()); 90 new AiaResponseHandler(kAiaHeaders, file_contents));
|
/external/chromium_org/net/proxy/ |
H A D | proxy_resolver_perftest.cc | 165 std::string file_contents; local 166 bool ok = base::ReadFileToString(path, &file_contents); 174 net::ProxyResolverScriptData::FromUTF8(file_contents),
|
H A D | proxy_resolver_v8_unittest.cc | 122 std::string file_contents; local 123 bool ok = base::ReadFileToString(path, &file_contents); 132 return SetPacScript(ProxyResolverScriptData::FromUTF8(file_contents),
|
H A D | proxy_resolver_v8_tracing_unittest.cc | 51 std::string file_contents; local 52 bool ok = base::ReadFileToString(path, &file_contents); 58 return ProxyResolverScriptData::FromUTF8(file_contents);
|
/external/chromium_org/net/quic/ |
H A D | quic_in_memory_cache.cc | 120 string file_contents; local 121 base::ReadFileToString(file, &file_contents); 123 if (file_contents.length() > INT_MAX) { 125 << file_contents.length(); 128 int file_len = static_cast<int>(file_contents.length()); 130 int headers_end = HttpUtil::LocateEndOfHeaders(file_contents.data(), 138 HttpUtil::AssembleRawHeaders(file_contents.data(), headers_end); 167 StringPiece body(file_contents.data() + headers_end, 168 file_contents.size() - headers_end);
|
/external/chromium_org/ui/base/dragdrop/ |
H A D | os_exchange_data_win_unittest.cc | 289 std::string file_contents = "[InternetShortcut]\r\nURL="; local 290 file_contents += url_spec; 291 file_contents += "\r\n"; 292 EXPECT_EQ(file_contents, output); 299 std::string file_contents("data\0with\0nulls", 15); 300 data.SetFileContents(base::FilePath(L"filename.txt"), file_contents); 307 EXPECT_EQ(file_contents, read_contents);
|
/external/chromium_org/chrome/browser/extensions/ |
H A D | extension_action_icon_factory_unittest.cc | 69 std::string file_contents; local 70 base::ReadFileToString(path, &file_contents); 72 reinterpret_cast<const unsigned char*>(file_contents.data()); 75 gfx::PNGCodec::Decode(data, file_contents.length(), &bitmap);
|
/external/chromium_org/chrome/utility/extensions/ |
H A D | unpacker.cc | 50 std::string file_contents; local 52 !base::ReadFileToString(path, &file_contents)) { 58 reinterpret_cast<const unsigned char*>(file_contents.data()); 61 file_contents.length());
|
/external/chromium_org/content/browser/download/ |
H A D | base_file_unittest.cc | 525 std::string file_contents; local 529 ASSERT_TRUE(base::ReadFileToString(new_path, &file_contents)); 530 EXPECT_EQ(expected_contents, file_contents);
|
/external/chromium_org/native_client_sdk/src/examples/api/file_io/ |
H A D | file_io.cc | 155 const std::string& file_contents) { 174 // file_contents is non-empty. 175 if (!file_contents.empty()) { 176 if (file_contents.length() > INT32_MAX) { 184 file_contents.data() + offset, 185 file_contents.length(), 193 } while (bytes_written < static_cast<int64_t>(file_contents.length())); 153 Save(int32_t , const std::string& file_name, const std::string& file_contents) argument
|
/external/chromium_org/net/disk_cache/simple/ |
H A D | simple_index_file_unittest.cc | 275 disk_cache::FakeIndexData file_contents; local 276 file_contents.initial_magic_number = disk_cache::kSimpleInitialMagicNumber; 277 file_contents.version = 5; 278 int bytes_written = file.Write(0, reinterpret_cast<char*>(&file_contents), 279 sizeof(file_contents)); 280 ASSERT_EQ((int)sizeof(file_contents), bytes_written);
|
/external/chromium_org/net/test/embedded_test_server/ |
H A D | embedded_test_server.cc | 62 std::string file_contents; local 63 if (!base::ReadFileToString(file_path, &file_contents)) 75 new CustomHttpResponse(headers_contents, file_contents)); 81 http_response->set_content(file_contents);
|
/external/chromium_org/net/tools/quic/ |
H A D | quic_in_memory_cache.cc | 158 string file_contents; local 159 base::ReadFileToString(file, &file_contents); 167 while (processed < file_contents.length() && 169 processed += framer.ProcessInput(file_contents.c_str() + processed, 170 file_contents.length() - processed); 175 << " (" << processed << " of " << file_contents.length() 178 if (processed < file_contents.length()) { 182 caching_visitor.AppendToBody(file_contents.c_str() + processed, 183 file_contents.length() - processed); 184 processed += file_contents [all...] |