Home
last modified time | relevance | path

Searched refs:FromString (Results 1 – 25 of 205) sorted by relevance

123456789

/external/chromium_org/chrome/browser/content_settings/
Dcontent_settings_origin_identifier_value_map_unittest.cc22 map.SetValue(ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
23 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
68 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
69 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
86 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
87 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
102 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
103 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
119 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
120 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
[all …]
Dcontent_settings_rule_unittest.cc43 rules1.push_back(Rule(ContentSettingsPattern::FromString("a"), in TEST()
46 rules1.push_back(Rule(ContentSettingsPattern::FromString("b"), in TEST()
50 rules2.push_back(Rule(ContentSettingsPattern::FromString("c"), in TEST()
53 rules2.push_back(Rule(ContentSettingsPattern::FromString("d"), in TEST()
65 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("a")); in TEST()
69 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("b")); in TEST()
73 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("c")); in TEST()
77 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("d")); in TEST()
Dcontent_settings_pref_provider_unittest.cc110 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
168 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
207 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
273 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
275 ContentSettingsPattern::FromString("example.org"); in TEST_F()
277 ContentSettingsPattern::FromString("file:///tmp/test.html"); in TEST_F()
359 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
Dhost_content_settings_map_unittest.cc81 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
154 ContentSettingsPattern::FromString("[*.]example.org"); in TEST_F()
189 ContentSettingsPattern::FromString("[*.]example.org"); in TEST_F()
191 ContentSettingsPattern::FromString("[*.]example.net"); in TEST_F()
238 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
240 ContentSettingsPattern::FromString("example.org"); in TEST_F()
277 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
359 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
401 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
555 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/base/
Dstringencode_unittest.cc356 EXPECT_TRUE(FromString("true", &value)); in TEST()
358 EXPECT_TRUE(FromString("true,", &value)); in TEST()
360 EXPECT_TRUE(FromString("true , true", &value)); in TEST()
362 EXPECT_TRUE(FromString("true ,\n false", &value)); in TEST()
364 EXPECT_TRUE(FromString(" true \n", &value)); in TEST()
367 EXPECT_TRUE(FromString("false", &value)); in TEST()
369 EXPECT_TRUE(FromString(" false ", &value)); in TEST()
371 EXPECT_TRUE(FromString(" false, ", &value)); in TEST()
374 EXPECT_TRUE(FromString<bool>("true\n")); in TEST()
375 EXPECT_FALSE(FromString<bool>("false\n")); in TEST()
[all …]
Dstringencode.h195 static bool FromString(const std::string& s, T* t) { in FromString() function
210 static inline T FromString(const std::string& str) { in FromString() function
211 T val; FromString(str, &val); return val; in FromString()
215 static inline T FromString(const T& defaultValue, const std::string& str) { in FromString() function
216 T val(defaultValue); FromString(str, &val); return val; in FromString()
/external/chromium/base/
Dpr_time_unittest.cc138 bool result = Time::FromString(L"15/10/07 12:45", &parsed_time); in TEST_F()
150 bool result = Time::FromString(L"Mon, 15 Oct 2007 19:45:00 GMT", in TEST_F()
164 EXPECT_TRUE(Time::FromString(L"Thu Jan 01 01:00:00 +0100 1970", in TEST_F()
167 EXPECT_TRUE(Time::FromString(L"Thu Jan 01 00:00:00 GMT 1970", in TEST_F()
176 EXPECT_TRUE(Time::FromString(L"Thu Jan 01 01:00:01 +0100 1970", in TEST_F()
179 EXPECT_TRUE(Time::FromString(L"Thu Jan 01 00:00:01 GMT 1970", in TEST_F()
188 EXPECT_TRUE(Time::FromString(L"Thu Jan 01 01:00:02 +0100 1970", in TEST_F()
191 EXPECT_TRUE(Time::FromString(L"Thu Jan 01 00:00:02 GMT 1970", in TEST_F()
200 EXPECT_TRUE(Time::FromString(L"Thu Jan 01 00:59:59 +0100 1970", in TEST_F()
203 EXPECT_TRUE(Time::FromString(L"Wed Dec 31 23:59:59 GMT 1969", in TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/webui/options/
Dpepper_flash_content_settings_utils_unittest.cc25 MediaException entry_1(ContentSettingsPattern::FromString("www.google.com"), in TEST()
27 MediaException entry_2(ContentSettingsPattern::FromString("www.youtube.com"), in TEST()
80 MediaException(ContentSettingsPattern::FromString("www.google.com"), in TEST()
82 MediaException(ContentSettingsPattern::FromString("www.youtube.com"), in TEST()
87 MediaException(ContentSettingsPattern::FromString("www.google.com"), in TEST()
121 MediaException(ContentSettingsPattern::FromString("www.youtube.com"), in TEST()
123 MediaException(ContentSettingsPattern::FromString("www.google.com"), in TEST()
128 MediaException(ContentSettingsPattern::FromString("www.google.com"), in TEST()
150 MediaException(ContentSettingsPattern::FromString("www.google.com"), in TEST()
155 MediaException(ContentSettingsPattern::FromString("www.google.com"), in TEST()
[all …]
/external/chromium_org/base/time/
Dtime_unittest.cc178 EXPECT_TRUE(Time::FromString(time_buf, &parsed_time)); in TEST_F()
184 EXPECT_TRUE(Time::FromString("Sun, 06 May 2012 12:00:00 GMT", &time)); in TEST_F()
192 EXPECT_TRUE(Time::FromString("Wed, 09 May 2012 12:00:00 GMT", &time)); in TEST_F()
200 EXPECT_TRUE(Time::FromString("Sat, 12 May 2012 12:00:00 GMT", &time)); in TEST_F()
208 EXPECT_TRUE(Time::FromString("Mon, 15 Oct 2007 19:45:00 GMT", &parsed_time)); in TEST_F()
214 EXPECT_TRUE(Time::FromString("15 Oct 07 12:45:00", &parsed_time)); in TEST_F()
220 EXPECT_TRUE(Time::FromString("15 Oct 07 19:45 GMT", &parsed_time)); in TEST_F()
226 EXPECT_TRUE(Time::FromString("Mon Oct 15 12:45 PDT 2007", &parsed_time)); in TEST_F()
232 EXPECT_TRUE(Time::FromString("Monday, Oct 15, 2007 12:45 PM", &parsed_time)); in TEST_F()
238 EXPECT_TRUE(Time::FromString("10/15/07 12:45:00 PM", &parsed_time)); in TEST_F()
[all …]
/external/chromium_org/remoting/base/
Drsa_key_pair_unittest.cc58 scoped_refptr<RsaKeyPair> exported_key = RsaKeyPair::FromString( in TEST_F()
60 scoped_refptr<RsaKeyPair> imported_key = RsaKeyPair::FromString( in TEST_F()
69 scoped_refptr<RsaKeyPair> key_pair = RsaKeyPair::FromString(kTestRsaKeyPair); in TEST_F()
86 scoped_refptr<RsaKeyPair> key_pair1 = RsaKeyPair::FromString(kTestRsaKeyPair); in TEST_F()
87 scoped_refptr<RsaKeyPair> key_pair2 = RsaKeyPair::FromString( in TEST_F()
/external/chromium_org/net/base/
Dhost_port_pair_unittest.cc17 HostPortPair bar = HostPortPair::FromString(foo_str); in TEST()
22 HostPortPair foo = HostPortPair::FromString("foo.com:2:3"); in TEST()
26 HostPortPair bar = HostPortPair::FromString("bar.com:two"); in TEST()
34 foo = HostPortPair::FromString("foo.com:8080"); in TEST()
/external/chromium_org/cloud_print/service/
Dservice_state_unittest.cc38 TEST(ServiceStateTest, FromString) { in TEST() argument
41 EXPECT_FALSE(state.FromString("<\"cloud_print\": {\"enabled\": true}}")); in TEST()
43 EXPECT_FALSE(state.FromString("{\"cloud_print\": {\"enabled\": true}}")); in TEST()
44 EXPECT_FALSE(state.FromString( in TEST()
49 EXPECT_TRUE(state.FromString( in TEST()
/external/chromium_org/tools/json_schema_compiler/test/
Dfeatures_unittest.cc12 TEST(FeaturesGeneratorTest, FromString) { in TEST() argument
14 EXPECT_EQ(TestFeatures::kSimple, test_features.FromString("simple")); in TEST()
15 EXPECT_EQ(TestFeatures::kComplex, test_features.FromString("complex")); in TEST()
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
Dvideosource.cc120 int value = talk_base::FromString<int>(constraint.value); in SetUpperLimitFromConstraint()
123 int value = talk_base::FromString<int>(constraint.value); in SetUpperLimitFromConstraint()
158 int value = talk_base::FromString<int>(constraint.value); in NewFormatWithConstraints()
161 int value = talk_base::FromString<int>(constraint.value); in NewFormatWithConstraints()
164 int value = talk_base::FromString<int>(constraint.value); in NewFormatWithConstraints()
167 int value = talk_base::FromString<int>(constraint.value); in NewFormatWithConstraints()
170 int value = talk_base::FromString<int>(constraint.value); in NewFormatWithConstraints()
173 int value = talk_base::FromString<int>(constraint.value); in NewFormatWithConstraints()
190 double value = talk_base::FromString<double>(constraint.value); in NewFormatWithConstraints()
200 double value = talk_base::FromString<double>(constraint.value); in NewFormatWithConstraints()
Dmediaconstraintsinterface.cc70 return talk_base::FromString(string_value, value); in FindConstraint()
73 return talk_base::FromString(string_value, value); in FindConstraint()
/external/chromium/third_party/libjingle/source/talk/base/
Dstringencode.h153 static bool FromString(const std::string& s, T* t) { in FromString() function
167 static inline T FromString(const std::string& str) { in FromString() function
168 T val; FromString(str, &val); return val; in FromString()
172 static inline T FromString(const T& defaultValue, const std::string& str) { in FromString() function
173 T val(defaultValue); FromString(str, &val); return val; in FromString()
Dnetwork.cc449 last_data_time_ = FromString<uint32>(map["lt"]); in SetState()
450 uniform_numerator_ = FromString<double>(map["un"]); in SetState()
451 uniform_denominator_ = FromString<double>(map["ud"]); in SetState()
452 exponential_numerator_ = FromString<double>(map["en"]); in SetState()
453 exponential_denominator_ = FromString<double>(map["ed"]); in SetState()
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/
Dmessage_factory_test.py49 self.factory_test1_fd = descriptor_pb2.FileDescriptorProto.FromString(
51 self.factory_test2_fd = descriptor_pb2.FileDescriptorProto.FromString(
82 converted = factory_test2_pb2.Factory2Message.FromString(serialized)
85 result = cls.FromString(reserialized)
/external/chromium_org/chrome/browser/net/
Dhttp_server_properties_manager_unittest.cc206 net::HostPortPair::FromString("www.google.com:80"))); in TEST_F()
208 net::HostPortPair::FromString("mail.google.com:80"))); in TEST_F()
210 net::HostPortPair::FromString("foo.google.com:1337"))); in TEST_F()
214 net::HostPortPair::FromString("www.google.com:80"))); in TEST_F()
216 net::HostPortPair::FromString("mail.google.com:80"))); in TEST_F()
219 net::HostPortPair::FromString("www.google.com:80")); in TEST_F()
224 net::HostPortPair::FromString("mail.google.com:80")); in TEST_F()
231 net::HostPortPair::FromString("www.google.com:80"))); in TEST_F()
234 net::HostPortPair::FromString("mail.google.com:80"))); in TEST_F()
/external/chromium_org/content/browser/renderer_host/media/
Dvideo_capture_oracle_unittest.cc72 ASSERT_TRUE(base::Time::FromString("Sat, 23 Mar 2013 1:21:08 GMT", &t)); in TEST()
112 ASSERT_TRUE(base::Time::FromString("Sat, 23 Mar 2013 1:21:08 GMT", &t)); in TEST()
158 ASSERT_TRUE(base::Time::FromString("Sat, 23 Mar 2013 1:21:08 GMT", &t)); in TEST()
208 ASSERT_TRUE(base::Time::FromString("Sat, 23 Mar 2013 1:21:08 GMT", &t)); in TEST()
244 ASSERT_TRUE(base::Time::FromString("Sat, 23 Mar 2013 1:21:08 GMT", &t)); in TEST()
278 ASSERT_TRUE(base::Time::FromString("Sat, 23 Mar 2013 1:21:08 GMT", &t)); in TEST()
303 ASSERT_TRUE(base::Time::FromString("Sat, 23 Mar 2013 1:21:08 GMT", &t)); in TEST()
359 ASSERT_TRUE(base::Time::FromString("Sat, 23 Mar 2013 1:21:08 GMT", &t)); in ReplayCheckingSamplerDecisions()
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/
Drelayserver_main.cc42 if (!int_addr.FromString(argv[1])) { in main()
48 if (!ext_addr.FromString(argv[2])) { in main()
/external/chromium/third_party/libjingle/source/talk/p2p/base/
Drelayserver_main.cc42 if (!int_addr.FromString(argv[1])) { in main()
48 if (!ext_addr.FromString(argv[2])) { in main()
/external/clang/include/clang/Frontend/
DCommandLineSourceLoc.h33 static ParsedSourceLocation FromString(StringRef Str) { in FromString() function
75 Val = ParsedSourceLocation::FromString(ArgValue); in parse()
/external/chromium_org/content/renderer/media/
Dcache_util.cc76 if (Time::FromString(response.httpHeaderField("Date").utf8().data(), &date) && in GetReasonsForUncacheability()
77 Time::FromString(response.httpHeaderField("Expires").utf8().data(), in GetReasonsForUncacheability()
/external/chromium_org/skia/ext/
Dimage_operations_bench.cc122 void FromString(const std::string& arg) { in FromString() function in __anone01d48e50111::Dimensions
194 source_.FromString(value); in ParseArgs()
196 dest_.FromString(value); in ParseArgs()

123456789