Searched defs:file_contents (Results 1 - 25 of 40) sorted by relevance

12

/external/chromium_org/chrome/browser/extensions/api/push_messaging/
H A Dsync_setup_helper.cc53 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 Durl_fetcher_response_writer_unittest.cc84 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 Dfunction_read_file.cc64 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 Dfile_reader_unittest.cc63 std::string file_contents; local
64 ASSERT_TRUE(base::ReadFileToString(path, &file_contents));
75 EXPECT_EQ(file_contents, receiver.data());
H A Dimage_loader.cc80 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 Dremovable_storage_provider_linux.cc32 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 Dprofiler_ui.cc85 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 Ddevtools_http_handler_unittest.cc162 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 Ddrop_data.h72 std::string file_contents; member in struct:content::DropData
/external/chromium_org/content/browser/tracing/
H A Dtrace_uploader.cc86 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 Dtracing_ui.cc309 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 Dpage_state_serialization_unittest.cc206 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 Dnss_ocsp_unittest.cc81 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 Dproxy_resolver_perftest.cc165 std::string file_contents; local
166 bool ok = base::ReadFileToString(path, &file_contents);
174 net::ProxyResolverScriptData::FromUTF8(file_contents),
H A Dproxy_resolver_v8_unittest.cc122 std::string file_contents; local
123 bool ok = base::ReadFileToString(path, &file_contents);
132 return SetPacScript(ProxyResolverScriptData::FromUTF8(file_contents),
H A Dproxy_resolver_v8_tracing_unittest.cc51 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 Dquic_in_memory_cache.cc120 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 Dos_exchange_data_win_unittest.cc289 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 Dextension_action_icon_factory_unittest.cc69 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 Dunpacker.cc50 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 Dbase_file_unittest.cc525 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 Dfile_io.cc155 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 Dsimple_index_file_unittest.cc275 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 Dembedded_test_server.cc62 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 Dquic_in_memory_cache.cc158 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...]

Completed in 457 milliseconds

12