Home
last modified time | relevance | path

Searched refs:string_value (Results 1 – 25 of 156) sorted by relevance

1234567

/external/chromium_org/net/cert/
Djwk_serializer_unittest.cc77 std::string string_value; in TEST() local
78 EXPECT_TRUE(public_key_jwk.GetString("kty", &string_value)); in TEST()
79 EXPECT_STREQ("EC", string_value.c_str()); in TEST()
80 EXPECT_TRUE(public_key_jwk.GetString("crv", &string_value)); in TEST()
81 EXPECT_STREQ("P-256", string_value.c_str()); in TEST()
83 EXPECT_TRUE(public_key_jwk.GetString("x", &string_value)); in TEST()
85 EXPECT_TRUE(base::Base64Decode(string_value, &decoded_coordinate)); in TEST()
92 EXPECT_TRUE(public_key_jwk.GetString("y", &string_value)); in TEST()
93 EXPECT_TRUE(base::Base64Decode(string_value, &decoded_coordinate)); in TEST()
106 EXPECT_TRUE(public_key_jwk.GetString("kty", &string_value)); in TEST()
[all …]
/external/chromium_org/tools/gn/
Dfunction_rebase_path.cc102 const std::string& string_value = value.string_value(); in ConvertOnePath() local
104 bool looks_like_dir = ValueLooksLikeDir(string_value); in ConvertOnePath()
111 from_dir.ResolveRelativeDir(string_value)); in ConvertOnePath()
114 from_dir.ResolveRelativeFile(string_value)); in ConvertOnePath()
118 MakeSlashEndingMatchInput(string_value, &result.string_value()); in ConvertOnePath()
119 ConvertPathToSystem(&result.string_value()); in ConvertOnePath()
132 result.string_value() = RebaseSourceAbsolutePath( in ConvertOnePath()
133 from_dir.ResolveRelativeDir(string_value).value(), in ConvertOnePath()
135 MakeSlashEndingMatchInput(string_value, &result.string_value()); in ConvertOnePath()
137 result.string_value() = RebaseSourceAbsolutePath( in ConvertOnePath()
[all …]
Dinput_conversion_unittest.cc16 EXPECT_EQ(input, result.string_value()); in TEST()
27 EXPECT_EQ("", result.list_value()[0].string_value()); in TEST()
28 EXPECT_EQ("foo", result.list_value()[1].string_value()); in TEST()
29 EXPECT_EQ("bar", result.list_value()[2].string_value()); in TEST()
38 EXPECT_EQ("str", result.string_value()); in TEST()
57 EXPECT_EQ("a", result.list_value()[0].string_value()); in TEST()
Dfunction_toolchain.cc31 *dest = v->string_value(); in ReadString()
100 Label label(input_dir, args[0].string_value()); in RunToolchain()
122 toolchain->set_gyp_header(gyp_header_value->string_value()); in RunToolchain()
203 const std::string& tool_name = args[0].string_value(); in RunTool()
/external/chromium_org/device/nfc/
Dnfc_ndef_record_unittest.cc71 std::string string_value; in TEST() local
73 NfcNdefRecord::kFieldText, &string_value)); in TEST()
74 EXPECT_EQ(kTestText, string_value); in TEST()
76 NfcNdefRecord::kFieldLanguageCode, &string_value)); in TEST()
77 EXPECT_EQ(kTestLanguageCode, string_value); in TEST()
79 NfcNdefRecord::kFieldEncoding, &string_value)); in TEST()
80 EXPECT_EQ(kTestEncoding, string_value); in TEST()
127 std::string string_value; in TEST() local
130 NfcNdefRecord::kFieldURI, &string_value)); in TEST()
131 EXPECT_EQ(kTestURI, string_value); in TEST()
[all …]
/external/chromium_org/components/policy/core/common/
Dregistry_dict_win_unittest.cc20 base::StringValue string_value("fortytwo"); in TEST() local
27 test_dict.SetValue("two", make_scoped_ptr(string_value.DeepCopy())); in TEST()
30 EXPECT_TRUE(base::Value::Equals(&string_value, test_dict.GetValue("two"))); in TEST()
36 EXPECT_TRUE(base::Value::Equals(&string_value, test_dict.GetValue("two"))); in TEST()
48 base::StringValue string_value("fortytwo"); in TEST() local
58 test_dict.SetValue("ONE", make_scoped_ptr(string_value.DeepCopy())); in TEST()
60 EXPECT_TRUE(base::Value::Equals(&string_value, test_dict.GetValue("one"))); in TEST()
63 EXPECT_TRUE(base::Value::Equals(&string_value, removed_value.get())); in TEST()
71 base::StringValue string_value("fortytwo"); in TEST() local
82 subdict->SetValue("three", make_scoped_ptr(string_value.DeepCopy())); in TEST()
[all …]
Dregistry_dict_win.cc62 std::string string_value; in ConvertValue() local
71 (value.GetAsString(&string_value) && in ConvertValue()
72 base::StringToInt(string_value, &int_value))) { in ConvertValue()
79 if (value.GetAsString(&string_value) && in ConvertValue()
80 base::StringToInt(string_value, &int_value)) { in ConvertValue()
90 } else if (value.GetAsString(&string_value) && in ConvertValue()
91 base::StringToDouble(string_value, &double_value)) { in ConvertValue()
116 if (value.GetAsString(&string_value)) { in ConvertValue()
117 scoped_ptr<base::Value> result(base::JSONReader::Read(string_value)); in ConvertValue()
/external/chromium/chrome/browser/ui/webui/options/
Dimport_data_handler.cc68 std::string string_value; in ImportData() local
71 if (!args->GetString(0, &string_value) || in ImportData()
72 !base::StringToInt(string_value, &browser_index)) { in ImportData()
78 if (args->GetString(1, &string_value) && string_value == "true") { in ImportData()
81 if (args->GetString(2, &string_value) && string_value == "true") { in ImportData()
84 if (args->GetString(3, &string_value) && string_value == "true") { in ImportData()
87 if (args->GetString(4, &string_value) && string_value == "true") { in ImportData()
/external/chromium_org/content/browser/webui/
Dweb_ui_message_handler.cc16 std::string string_value; in ExtractIntegerValue() local
17 if (value->GetString(0, &string_value)) in ExtractIntegerValue()
18 return base::StringToInt(string_value, out_int); in ExtractIntegerValue()
30 std::string string_value; in ExtractDoubleValue() local
31 if (value->GetString(0, &string_value)) in ExtractDoubleValue()
32 return base::StringToDouble(string_value, out_value); in ExtractDoubleValue()
/external/chromium/chrome/browser/extensions/
Dextension_cookies_unittest.cc104 std::string string_value; in TEST_F() local
115 EXPECT_TRUE(cookie_value1->GetString(keys::kNameKey, &string_value)); in TEST_F()
116 EXPECT_EQ("ABC", string_value); in TEST_F()
117 EXPECT_TRUE(cookie_value1->GetString(keys::kValueKey, &string_value)); in TEST_F()
118 EXPECT_EQ("DEF", string_value); in TEST_F()
119 EXPECT_TRUE(cookie_value1->GetString(keys::kDomainKey, &string_value)); in TEST_F()
120 EXPECT_EQ("www.foobar.com", string_value); in TEST_F()
123 EXPECT_TRUE(cookie_value1->GetString(keys::kPathKey, &string_value)); in TEST_F()
124 EXPECT_EQ("/", string_value); in TEST_F()
133 EXPECT_TRUE(cookie_value1->GetString(keys::kStoreIdKey, &string_value)); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/webui/options/
Dimport_data_handler.cc116 std::string string_value; in ImportData() local
119 if (!args->GetString(0, &string_value) || in ImportData()
120 !base::StringToInt(string_value, &browser_index)) { in ImportData()
126 if (args->GetString(1, &string_value) && string_value == "true") { in ImportData()
129 if (args->GetString(2, &string_value) && string_value == "true") { in ImportData()
132 if (args->GetString(3, &string_value) && string_value == "true") { in ImportData()
135 if (args->GetString(4, &string_value) && string_value == "true") { in ImportData()
Dpassword_manager_handler.cc113 std::string string_value = UTF16ToUTF8(ExtractStringValue(args)); in HandleRemoveSavedPassword() local
115 if (base::StringToInt(string_value, &index) && index >= 0) { in HandleRemoveSavedPassword()
122 std::string string_value = UTF16ToUTF8(ExtractStringValue(args)); in HandleRemovePasswordException() local
124 if (base::StringToInt(string_value, &index) && index >= 0) { in HandleRemovePasswordException()
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
Dmediaconstraintsinterface.cc63 std::string string_value; in FindConstraint() local
67 if (constraints->GetMandatory().FindFirst(key, &string_value)) { in FindConstraint()
70 return talk_base::FromString(string_value, value); in FindConstraint()
72 if (constraints->GetOptional().FindFirst(key, &string_value)) { in FindConstraint()
73 return talk_base::FromString(string_value, value); in FindConstraint()
/external/chromium_org/dbus/
Dmessage_unittest.cc68 std::string string_value; in TEST() local
82 ASSERT_TRUE(reader.PopString(&string_value)); in TEST()
96 EXPECT_EQ("string", string_value); in TEST()
169 std::string string_value; in TEST() local
183 ASSERT_TRUE(reader.PopVariantOfString(&string_value)); in TEST()
197 EXPECT_EQ("string", string_value); in TEST()
311 std::string string_value; in TEST() local
312 ASSERT_TRUE(array_reader.PopString(&string_value)); in TEST()
313 EXPECT_EQ("foo", string_value); in TEST()
314 ASSERT_TRUE(array_reader.PopString(&string_value)); in TEST()
[all …]
/external/chromium_org/chrome/browser/net/
Ddisk_cache_dir_policy_handler.cc25 base::FilePath::StringType string_value; in ApplyPolicySettings() local
26 if (value && value->GetAsString(&string_value)) { in ApplyPolicySettings()
28 policy::path_parser::ExpandPathVariables(string_value); in ApplyPolicySettings()
/external/chromium/base/win/
Dregistry_unittest.cc69 std::wstring string_value; in TEST_F() local
72 ASSERT_EQ(ERROR_SUCCESS, key.ReadValue(kStringValueName, &string_value)); in TEST_F()
75 EXPECT_STREQ(kStringData, string_value.c_str()); in TEST_F()
81 ASSERT_NE(ERROR_SUCCESS, key.ReadValue(kNonExistent, &string_value)); in TEST_F()
84 EXPECT_STREQ(kStringData, string_value.c_str()); in TEST_F()
/external/chromium/sdch/open-vcdiff/src/gtest/
Dgtest-port.cc214 const char* const string_value = GetEnv(env_var.c_str()); in BoolFromGTestEnv() local
215 return string_value == NULL ? in BoolFromGTestEnv()
216 default_value : strcmp(string_value, "0") != 0; in BoolFromGTestEnv()
265 const char* const string_value = GetEnv(env_var.c_str()); in Int32FromGTestEnv() local
266 if (string_value == NULL) { in Int32FromGTestEnv()
273 string_value, &result)) { in Int32FromGTestEnv()
/external/chromium_org/chrome/browser/download/
Ddownload_dir_policy_handler.cc27 base::FilePath::StringType string_value; in ApplyPolicySettings() local
28 if (!value || !value->GetAsString(&string_value)) in ApplyPolicySettings()
32 policy::path_parser::ExpandPathVariables(string_value); in ApplyPolicySettings()
/external/chromium_org/chrome/browser/extensions/api/signed_in_devices/
Did_mapping_helper.cc59 std::string string_value; in GetRandomId() local
63 string_value = base::IntToString(rand_value); in GetRandomId()
65 } while (mapping.Get(string_value, &out_value)); in GetRandomId()
67 return string_value; in GetRandomId()
/external/chromium_org/chrome/browser/chromeos/login/screens/
Dscreen_context_unittest.cc107 std::string string_value; in TEST_F() local
110 bool rv = changes.GetString("key0", &string_value); in TEST_F()
116 ASSERT_EQ("value0", string_value); in TEST_F()
129 rv = changes.GetString("key0", &string_value); in TEST_F()
131 ASSERT_EQ("value0", string_value); in TEST_F()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dbind_unittest.cc62 const std::string string_value("test string"); in TEST() local
63 EXPECT_EQ(string_value, Bind(&MethodBindTester::Identity<std::string>, in TEST()
64 &object, string_value)()); in TEST()
/external/chromium/chrome/common/
Djson_pref_store_unittest.cc104 std::string string_value; in TEST_F() local
105 EXPECT_TRUE(actual->GetAsString(&string_value)); in TEST_F()
106 EXPECT_EQ(cnn, string_value); in TEST_F()
149 EXPECT_TRUE(actual->GetAsString(&string_value)); in TEST_F()
151 base::StringToInt64(string_value, &value); in TEST_F()
/external/chromium_org/base/win/
Dregistry_unittest.cc75 std::wstring string_value; in TEST_F() local
78 ASSERT_EQ(ERROR_SUCCESS, key.ReadValue(kStringValueName, &string_value)); in TEST_F()
81 EXPECT_STREQ(kStringData, string_value.c_str()); in TEST_F()
87 ASSERT_NE(ERROR_SUCCESS, key.ReadValue(kNonExistent, &string_value)); in TEST_F()
90 EXPECT_STREQ(kStringData, string_value.c_str()); in TEST_F()
/external/chromium_org/base/test/
Dvalues_test_util.cc50 std::string string_value; in ExpectDictStringValue() local
51 EXPECT_TRUE(value.GetString(key, &string_value)) << key; in ExpectDictStringValue()
52 EXPECT_EQ(expected_value, string_value) << key; in ExpectDictStringValue()
/external/chromium_org/content/browser/accessibility/
Daccessibility_tree_formatter_win.cc224 base::string16 string_value; in ToString() local
225 value->GetAsString(&string_value); in ToString()
229 string_value.c_str()), in ToString()
261 base::string16 string_value; in ToString() local
262 if ((*it)->GetAsString(&string_value)) in ToString()
263 WriteAttribute(false, string_value, &line); in ToString()

1234567