/external/chromium_org/chrome/browser/resources/chromeos/chromevox/tools/ |
chromevox_webstore_util.py | 12 import json namespace 72 return json.loads(content)
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
api_schema_graph.py | 5 import json namespace 275 assert False, 'Problems with naming node: %s' % json.dumps(node, indent=3)
|
content_provider_test.py | 7 import json namespace 19 _REDIRECTS_JSON = json.dumps({ 68 'redirects.json': _REDIRECTS_JSON, 124 unicode(_REDIRECTS_JSON, 'utf-8'), 'application/json', 125 self._content_provider.GetContentAndType('redirects.json').Get())
|
fake_fetchers.py | 10 import json namespace 43 return _ReadTestData('branch_utility', 'first.json') 48 return _ReadTestData('branch_utility', 'second.json') 98 return json.dumps({'commit': '1' * 40}) 115 return json.dumps(jsn) 168 'rietveld_patcher', self._base_pattern.match(url).group(1), 'json')
|
github_file_system.py | 5 import json namespace 192 # Parse response JSON - but sometimes github gives us invalid JSON. 194 version = json.loads(result.content)['sha'] 199 ('%s: got invalid or unexpected JSON from github. Response status ' +
|
gitiles_file_system.py | 8 import json namespace 31 _JSON_FORMAT = '?format=JSON' 37 '''json.loads with fix-up for non-executable JSON. Use this to parse any JSON 40 return json.loads(json_data[json_data.find('{'):]) 118 # Directory content is formatted in JSON in Gitiles as follows: 139 # the URL. The format may be one of 'JSON' or 'TEXT' for directory or 167 The JSON view for commit info looks like: 188 # Commit information for a branch is obtained by appending '?format=JSON' [all...] |
integration_test.py | 11 import json namespace 72 # Public file locations are defined in content_providers.json, sort of. Epic 138 # Server2Path('known_broken_links.json')) 141 # # The JSON file converts tuples and sets into lists, and for this 143 # known_broken_links = set(tuple(item) for item in json.load(f)) 169 if path.endswith('redirects.json'): 226 # json.dump(broken_links, f, 280 help='Rewrites the known_broken_links.json file with '
|
new_github_file_system.py | 5 import json namespace 234 return json.loads(result.content)['sha'] 236 raise FileSystemError('Error parsing JSON from repo %s: %s' %
|
new_github_file_system_test.py | 6 import json namespace 92 commit_json = json.loads(deepcopy(LocalFileSystem('').ReadSingle( 95 return json.dumps(commit_json)
|
subversion_file_system_test.py | 6 import json namespace 67 child_versions=json.loads(ReadFile( 68 SERVER2, 'test_data', 'file_system', 'stat_result.json')))
|
/external/chromium_org/chrome/test/mini_installer/ |
test_installer.py | 15 import json namespace 251 new_property = json.load(open(path)) 266 config_data = json.load(fp) 345 json.dump(_FullResults(suite, result, {}), fp, indent=2) 355 """Convert the unittest results to the Chromium JSON test result format.
|
/external/chromium_org/chrome/test/telemetry/chromeos/ |
login_unittest.py | 4 import json namespace 29 cryptohomeStatus = json.loads(cryptohomeJSON)
|
/external/chromium_org/cloud_print/gcp20/prototype/ |
printer_state.cc | 8 #include "base/json/json_reader.h" 9 #include "base/json/json_writer.h" 45 base::DictionaryValue json; local 47 json.SetBoolean(kRegistered, true); 48 json.SetString(kUser, state.user); 49 json.SetString(kDeviceId, state.device_id); 50 json.SetString(kRefreshToken, state.refresh_token); 51 json.SetString(kXmppJid, state.xmpp_jid); 52 json.SetString(kAccessToken, state.access_token); 53 json.SetInteger(kAccessTokenUpdate 89 base::DictionaryValue* json = NULL; local [all...] |
/external/chromium_org/cloud_print/service/ |
service_state.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 100 bool ServiceState::FromString(const std::string& json) { 102 scoped_ptr<base::Value> data(base::JSONReader::Read(json)); 153 std::string json; local 156 &json); 157 return json;
|
/external/chromium_org/content/browser/webui/ |
web_ui_impl.cc | 7 #include "base/json/json_writer.h" 34 std::string json; local 39 base::JSONWriter::Write(arg_list[i], &json); 40 parameters += base::UTF8ToUTF16(json);
|
/external/chromium_org/content/child/webcrypto/test/ |
hmac_unittest.cc | 38 ASSERT_TRUE(ReadJsonTestFileToList("hmac.json", &tests)); 500 std::vector<uint8_t> json; local 502 ExportKey(blink::WebCryptoKeyFormatJwk, key, &json)); 503 EXPECT_TRUE(VerifySecretJwk(json, "HS1", key_data_hex, usages)); 509 CryptoData(json),
|
/external/chromium_org/content/test/ |
mock_google_streaming_server.cc | 115 std::string json = local 117 SimulateServerResponse(true, json);
|
/external/chromium_org/extensions/browser/ |
computed_hashes.cc | 10 #include "base/json/json_reader.h" 11 #include "base/json/json_writer.h" 154 std::string json; local 159 if (!base::JSONWriter::Write(&top_dictionary, &json)) 161 int written = base::WriteFile(path, json.data(), json.size()); 162 if (static_cast<unsigned>(written) != json.size()) { 164 << " ; write result:" << written << " expected:" << json.size();
|
/external/chromium_org/gpu/config/ |
gpu_control_list_entry_unittest.cc | 5 #include "base/json/json_reader.h" 32 const std::string& json, bool supports_feature_type_all) { 34 root.reset(base::JSONReader::Read(json)); 48 static ScopedEntry GetEntryFromString(const std::string& json) { 49 return GetEntryFromString(json, false); 72 const std::string json = LONG_STRING_CONST( local 97 ScopedEntry entry(GetEntryFromString(json)); 116 const std::string json = LONG_STRING_CONST( local 125 ScopedEntry entry(GetEntryFromString(json)); 141 const std::string json = LONG_STRING_CONST local 170 const std::string json = LONG_STRING_CONST( local 202 const std::string json = LONG_STRING_CONST( local 235 const std::string json = LONG_STRING_CONST( local 267 const std::string json = LONG_STRING_CONST( local 293 const std::string json = LONG_STRING_CONST( local 321 const std::string json = LONG_STRING_CONST( local 335 const std::string json = LONG_STRING_CONST( local 349 const std::string json = LONG_STRING_CONST( local 367 const std::string json = LONG_STRING_CONST( local 381 const std::string json = LONG_STRING_CONST( local 412 const std::string json = LONG_STRING_CONST( local 443 const std::string json = LONG_STRING_CONST( local 474 const std::string json = LONG_STRING_CONST( local 502 const std::string json = LONG_STRING_CONST( local 525 const std::string json = LONG_STRING_CONST( local 561 const std::string json = LONG_STRING_CONST( local 584 const std::string json = LONG_STRING_CONST( local 611 const std::string json = LONG_STRING_CONST( local 629 const std::string json = LONG_STRING_CONST( local 647 const std::string json = LONG_STRING_CONST( local 666 const std::string json = LONG_STRING_CONST( local 681 const std::string json = LONG_STRING_CONST( local 704 const std::string json = LONG_STRING_CONST( local 727 const std::string json = LONG_STRING_CONST( local 759 const std::string json = LONG_STRING_CONST( local 797 const std::string json = LONG_STRING_CONST( local 822 const std::string json = LONG_STRING_CONST( local 848 const std::string json = LONG_STRING_CONST( local 865 const std::string json = LONG_STRING_CONST( local 879 const std::string json = LONG_STRING_CONST( local 894 const std::string json = LONG_STRING_CONST( local 916 const std::string json = LONG_STRING_CONST( local 973 const std::string json = LONG_STRING_CONST( local 1014 const std::string json = LONG_STRING_CONST( local 1041 const std::string json = LONG_STRING_CONST( local 1205 const std::string json = LONG_STRING_CONST( local 1227 const std::string json = LONG_STRING_CONST( local 1248 const std::string json = LONG_STRING_CONST( local 1270 const std::string json = LONG_STRING_CONST( local [all...] |
gpu_control_list_unittest.cc | 136 // Invalid json input should not change the current control_list settings. 293 const std::string json = LONG_STRING_CONST( local 319 EXPECT_TRUE(control_list->LoadList(json, GpuControlList::kAllOs)); 339 const std::string json = LONG_STRING_CONST( local 366 EXPECT_TRUE(control_list->LoadList(json, GpuControlList::kAllOs)); 399 const std::string json = LONG_STRING_CONST( local 435 EXPECT_TRUE(control_list->LoadList(json, GpuControlList::kAllOs)); 443 const std::string json = LONG_STRING_CONST( local 483 EXPECT_TRUE(control_list->LoadList(json, GpuControlList::kAllOs)); 506 const std::string json= LONG_STRING_CONST local 544 const std::string json= LONG_STRING_CONST( local [all...] |
/external/chromium_org/ipc/ |
ipc_message_utils.cc | 8 #include "base/json/json_writer.h" 455 std::string json; local 456 base::JSONWriter::Write(&p, &json); 457 l->append(json); 536 std::string json; local 537 base::JSONWriter::Write(&p, &json); 538 l->append(json);
|
/external/chromium_org/media/cdm/ |
json_web_key.cc | 8 #include "base/json/json_reader.h" 9 #include "base/json/json_string_value_serializer.h" 10 #include "base/json/string_escape.h" 87 // Processes a JSON Web Key to extract the key id and key value. Sets |jwk_key| 210 std::string json; local 211 JSONStringValueSerializer serializer(&json); 215 std::vector<uint8> result(json.begin(), json.end());
|
/external/chromium_org/net/base/ |
net_log_logger.cc | 9 #include "base/json/json_writer.h" 66 std::string json; local 67 base::JSONWriter::Write(&constants, &json); 68 fprintf(file_.get(), "{\"constants\": %s,\n", json.c_str()); 95 std::string json; local 96 base::JSONWriter::Write(value.get(), &json); 99 json.c_str());
|
/external/chromium_org/net/tools/dns_fuzz_stub/ |
dns_fuzz_stub.cc | 13 #include "base/json/json_reader.h" 55 std::string json; local 56 if (!base::ReadFileToString(filepath, &json)) { 61 scoped_ptr<base::Value> value(base::JSONReader::Read(json)); 63 LOG(ERROR) << filename << ": couldn't parse JSON.";
|
/external/chromium_org/ppapi/native_client/ |
chrome_main.scons | 6 import json namespace 197 src_json = json.load(src_file) 217 json.dump(src_json, target_file, sort_keys=True, indent=2) 249 obj = json.load(source_file) 275 json.dump(obj, target_file, sort_keys=True, indent=2) 305 json.dump(nmf_data, fh, sort_keys=True, indent=2) 331 obj = json.loads(env.File(manifest).get_contents())
|