/external/chromium_org/chrome/common/extensions/docs/server2/ |
H A D | 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')) 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 '
|
H A D | new_github_file_system.py | 5 import json namespace 234 return json.loads(result.content)['sha']
|
H A D | new_github_file_system_test.py | 6 import json namespace 92 commit_json = json.loads(deepcopy(LocalFileSystem('').ReadSingle( 95 return json.dumps(commit_json)
|
H A D | 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/ |
H A D | 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)
|
/external/chromium_org/chrome/test/telemetry/chromeos/ |
H A D | login_unittest.py | 4 import json namespace 29 cryptohomeStatus = json.loads(cryptohomeJSON)
|
/external/chromium_org/cloud_print/gcp20/prototype/ |
H A D | 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 89 base::DictionaryValue* json = NULL; local [all...] |
/external/chromium_org/components/cloud_devices/common/ |
H A D | printer_description_unittest.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 17 // Replaces ' with " to allow readable json constants in tests. 18 // Makes sure that same json value represented by same strings to simplify 20 std::string NormalizeJson(const std::string& json) { argument 21 std::string result = json;
|
/external/chromium_org/components/cronet/android/ |
H A D | chromium_url_request_context.cc | 11 #include "base/json/json_reader.h" 126 std::string json = base::StatisticsRecorder::ToJSON(query); local 127 return base::android::ConvertUTF8ToJavaString(env, json).Release();
|
/external/chromium_org/components/cronet/android/java/src/org/chromium/net/ |
H A D | HttpUrlRequestFactoryConfig.java | 7 import org.json.JSONArray; 8 import org.json.JSONException; 9 import org.json.JSONObject; 35 * Create config from json serialized using @toString. 37 public HttpUrlRequestFactoryConfig(String json) throws JSONException { argument 38 mConfig = new JSONObject(json);
|
/external/chromium_org/components/domain_reliability/ |
H A D | config.cc | 14 #include "base/json/json_reader.h" 15 #include "base/json/json_value_converter.h" 94 const base::StringPiece& json) { 95 scoped_ptr<base::Value> value(base::JSONReader::Read(json)); 93 FromJSON( const base::StringPiece& json) argument
|
/external/chromium_org/content/child/webcrypto/test/ |
H A D | 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/ |
H A D | mock_google_streaming_server.cc | 115 std::string json = local 117 SimulateServerResponse(true, json);
|
/external/chromium_org/content/test/ppapi/ |
H A D | ppapi_test.cc | 30 const std::string& json) { 32 base::TrimString(json, "\"", &trimmed); 29 HandleMessage( const std::string& json) argument
|
/external/chromium_org/extensions/browser/ |
H A D | 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/extensions/browser/value_store/ |
H A D | value_store_unittest.cc | 7 #include "base/json/json_writer.h" 20 std::string json; local 23 &json); 24 return json;
|
/external/chromium_org/extensions/common/api/sockets/ |
H A D | sockets_manifest_permission_unittest.cc | 7 #include "base/json/json_reader.h" 41 static scoped_ptr<base::Value> ParsePermissionJSON(const std::string& json) { argument 42 scoped_ptr<base::Value> result(base::JSONReader::Read(json)); 43 EXPECT_TRUE(result) << "Invalid JSON string: " << json; 57 const std::string& json) { 58 scoped_ptr<base::Value> value(ParsePermissionJSON(json)); 87 const std::string& json) { 88 scoped_ptr<SocketsManifestPermission> permission(PermissionFromJSON(json)); 90 return testing::AssertionFailure() << "Invalid permission " << json; 94 << "Incorrect # of entries in json 56 PermissionFromJSON( const std::string& json) argument 85 CheckFormat( std::multiset<CheckFormatEntry> permissions, const std::string& json) argument 115 CheckFormat(const std::string& json) argument 119 CheckFormat(const std::string& json, const CheckFormatEntry& op1) argument 127 CheckFormat(const std::string& json, const CheckFormatEntry& op1, const CheckFormatEntry& op2) argument 136 CheckFormat(const std::string& json, const CheckFormatEntry& op1, const CheckFormatEntry& op2, const CheckFormatEntry& op3, const CheckFormatEntry& op4, const CheckFormatEntry& op5, const CheckFormatEntry& op6, const CheckFormatEntry& op7, const CheckFormatEntry& op8, const CheckFormatEntry& op9) argument [all...] |
/external/chromium_org/gpu/config/ |
H A D | 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) { argument 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 local 31 GetEntryFromString( const std::string& json, bool supports_feature_type_all) argument 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...] |
H A D | 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 local 544 const std::string json= LONG_STRING_CONST( local [all...] |
/external/chromium_org/net/base/ |
H A D | 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/ |
H A D | 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));
|
/external/chromium_org/ppapi/native_client/ |
H A D | 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())
|
/external/chromium_org/remoting/tools/build/ |
H A D | remoting_localize.py | 34 import json namespace 584 messages = json.load(messages_file) 625 'messages.json')
|
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/custom/ |
H A D | V8XMLHttpRequestCustom.cpp | 110 v8::Handle<v8::Value> json = v8::JSON::Parse(jsonSource.v8Value()); local 111 if (exceptionCatcher.HasCaught() || json.IsEmpty()) 114 v8SetReturnValue(info, json);
|
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/ |
H A D | CodeGeneratorFrontend.py | 37 import json namespace 39 import simplejson as json namespace 56 sys.stderr.write("Usage: <script> protocol.json --output_js_dir <output_js_dir>\n") 146 json_api = json.loads(json_string)
|