HomeSort by relevance Sort by last modified time
    Searched refs:file_contents (Results 1 - 25 of 78) sorted by null

1 2 3 4

  /external/chromium_org/chrome/common/extensions/docs/server2/
directory_zipper.py 35 file_contents = future.Get()
36 if isinstance(file_contents, unicode):
38 file_contents = file_contents.encode('utf8')
43 zip_file.writestr(posixpath.join(dir_name, file_name), file_contents)
  /external/chromium_org/tools/gn/
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/third_party/WebKit/Source/bindings/scripts/
utilities.py 122 def get_partial_interface_name_from_idl(file_contents):
123 match = re.search(r'partial\s+interface\s+(\w+)\s*{', file_contents)
127 def get_implements_from_idl(file_contents, interface_name):
143 implements_matches = re.finditer(implements_re, file_contents, re.MULTILINE)
162 def is_callback_interface_from_idl(file_contents):
163 match = re.search(r'callback\s+interface\s+\w+\s*{', file_contents)
167 def is_dictionary_from_idl(file_contents):
168 match = re.search(r'dictionary\s+\w+\s*{', file_contents)
172 def get_parent_interface(file_contents):
177 file_contents)
    [all...]
  /external/chromium_org/v8/tools/testrunner/server/
signatures.py 36 file_contents = base64.b64encode(f.read())
47 return [file_contents, signature]
50 def VerifySignature(filename, file_contents, signature, pubkeyfile):
52 f.write(base64.b64decode(file_contents))
  /external/skia/gm/
gm_json.py 164 def LoadFromString(file_contents):
171 json_dict = json.loads(file_contents)
179 file_contents = open(file_path, 'r').read()
180 return LoadFromString(file_contents)
  /external/chromium_org/net/disk_cache/simple/
simple_version_upgrade_unittest.cc 69 const std::string file_contents("incorrectly serialized data");
71 ASSERT_EQ(implicit_cast<int>(file_contents.size()),
73 index_file, file_contents.data(), file_contents.size()));
96 const std::string file_contents("incorrectly serialized data");
98 ASSERT_EQ(implicit_cast<int>(file_contents.size()),
100 index_file, file_contents.data(), file_contents.size()));
109 file_contents +
128 file_contents
    [all...]
simple_version_upgrade.cc 37 disk_cache::FakeIndexData file_contents;
38 file_contents.initial_magic_number =
40 file_contents.version = disk_cache::kSimpleVersion;
41 int bytes_written = file.Write(0, reinterpret_cast<char*>(&file_contents),
42 sizeof(file_contents));
43 if (bytes_written != sizeof(file_contents)) {
  /external/chromium_org/third_party/skia/gm/
gm_json.py 170 def LoadFromString(file_contents):
174 above; if file_contents is empty, returns None."""
178 if not file_contents:
180 json_dict = json.loads(file_contents)
188 file_contents = open(file_path, 'r').read()
189 return LoadFromString(file_contents)
  /external/chromium_org/net/quic/
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/chrome/browser/extensions/api/push_messaging/
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/
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/net/tools/quic/
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.length()
    [all...]
  /external/chromium_org/tools/grit/grit/format/
rc_unittest.py 215 file_contents = util.ReadFile(output_file, util.RAW_TEXT)
218 self.failUnless(file_contents.find('Hello Include!') != -1)
220 self.failUnless(file_contents.find('should be removed') == -1)
222 self.failUnless(file_contents.find('should be kept') != -1)
223 self.failUnless(file_contents.find('in the middle...') != -1)
224 self.failUnless(file_contents.find('at the end...') != -1)
226 self.failUnless(file_contents.find('nested true should be kept') != -1)
227 self.failUnless(file_contents.find('silbing true should be kept') != -1)
229 self.failUnless(file_contents.find('<if expr=') == -1)
230 self.failUnless(file_contents.find('</if>') == -1
    [all...]
  /external/chromium_org/chrome/browser/extensions/api/image_writer_private/
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/extensions/browser/
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());
  /external/chromium_org/net/ocsp/
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/build/
gyp_helper.py 19 file_contents = f.read()
21 file_data = eval(file_contents, {'__builtins__': None}, None)
  /external/chromium_org/third_party/skia/tools/copyright/
fileparser.py 76 def FindAllCommentBlocks(self, file_contents):
79 return self._comment_pattern.findall(file_contents)
  /external/skia/tools/copyright/
fileparser.py 76 def FindAllCommentBlocks(self, file_contents):
79 return self._comment_pattern.findall(file_contents)
  /external/chromium_org/content/common/
drag_traits.h 35 IPC_STRUCT_TRAITS_MEMBER(file_contents)
  /external/chromium_org/content/public/common/
drop_data.h 72 std::string file_contents; member in struct:content::DropData
  /external/chromium_org/ui/base/dragdrop/
os_exchange_data.cc 108 if ((formats & FILE_CONTENTS) != 0 && provider_->HasFileContents())
127 const std::string& file_contents) {
128 provider_->SetFileContents(filename, file_contents);
132 std::string* file_contents) const {
133 return provider_->GetFileContents(filename, file_contents);
os_exchange_data.h 64 FILE_CONTENTS = 1 << 4,
122 const std::string& file_contents) = 0;
126 std::string* file_contents) const = 0;
216 const std::string& file_contents);
218 std::string* file_contents) const;
  /external/chromium_org/native_client_sdk/src/examples/api/file_io/
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()));
  /external/chromium_org/tools/gyp/test/lib/
TestCommon.py 240 file_contents = self.read(file, mode)
241 contains = (string.find(file_contents, required) != -1)
247 print file_contents
326 file_contents = self.read(file, mode)
328 self.fail_test(not self.match(file_contents, expect))
333 self.diff(expect, file_contents, 'contents ')
339 file_contents = self.read(file, mode)
340 contains = (string.find(file_contents, banned) != -1)
346 print file_contents

Completed in 739 milliseconds

1 2 3 4