Home
last modified time | relevance | path

Searched refs:IsType (Results 1 – 25 of 219) sorted by relevance

123456789

/external/chromium_org/base/json/
Djson_reader_unittest.cc25 EXPECT_TRUE(root->IsType(Value::TYPE_NULL)); in TEST()
34 EXPECT_TRUE(root->IsType(Value::TYPE_BOOLEAN)); in TEST()
39 EXPECT_TRUE(root->IsType(Value::TYPE_NULL)); in TEST()
42 EXPECT_TRUE(root->IsType(Value::TYPE_INTEGER)); in TEST()
45 EXPECT_TRUE(root->IsType(Value::TYPE_BOOLEAN)); in TEST()
48 EXPECT_TRUE(root->IsType(Value::TYPE_STRING)); in TEST()
67 EXPECT_TRUE(root->IsType(Value::TYPE_INTEGER)); in TEST()
75 EXPECT_TRUE(root->IsType(Value::TYPE_INTEGER)); in TEST()
82 EXPECT_TRUE(root->IsType(Value::TYPE_INTEGER)); in TEST()
98 EXPECT_TRUE(root->IsType(Value::TYPE_INTEGER)); in TEST()
[all …]
Djson_value_serializer_unittest.cc64 ASSERT_TRUE(root.get() && root->IsType(Value::TYPE_LIST)); in ValidateJsonList()
174 ASSERT_TRUE(root->IsType(Value::TYPE_DICTIONARY)); in TEST()
181 ASSERT_TRUE(null_value->IsType(Value::TYPE_NULL)); in TEST()
356 ASSERT_TRUE(root.get() && root->IsType(Value::TYPE_LIST)); in TEST()
396 ASSERT_TRUE(root->IsType(Value::TYPE_DICTIONARY)); in TEST_F()
403 ASSERT_TRUE(null_value->IsType(Value::TYPE_NULL)); in TEST_F()
/external/chromium/base/json/
Djson_reader_unittest.cc20 ASSERT_TRUE(root->IsType(Value::TYPE_NULL)); in TEST()
29 ASSERT_TRUE(root->IsType(Value::TYPE_BOOLEAN)); in TEST()
34 ASSERT_TRUE(root->IsType(Value::TYPE_NULL)); in TEST()
37 ASSERT_TRUE(root->IsType(Value::TYPE_INTEGER)); in TEST()
40 ASSERT_TRUE(root->IsType(Value::TYPE_BOOLEAN)); in TEST()
44 ASSERT_TRUE(root->IsType(Value::TYPE_STRING)); in TEST()
52 ASSERT_TRUE(root->IsType(Value::TYPE_INTEGER)); in TEST()
69 ASSERT_TRUE(root->IsType(Value::TYPE_INTEGER)); in TEST()
79 ASSERT_TRUE(root->IsType(Value::TYPE_DOUBLE)); in TEST()
85 ASSERT_TRUE(root->IsType(Value::TYPE_DOUBLE)); in TEST()
[all …]
/external/chromium/base/
Dvalues.cc129 DCHECK(IsType(TYPE_NULL)); in DeepCopy()
136 DCHECK(IsType(TYPE_NULL)); in Equals()
137 return other->IsType(TYPE_NULL); in Equals()
168 if (out_value && IsType(TYPE_BOOLEAN)) in GetAsBoolean()
170 return (IsType(TYPE_BOOLEAN)); in GetAsBoolean()
174 if (out_value && IsType(TYPE_INTEGER)) in GetAsInteger()
176 return (IsType(TYPE_INTEGER)); in GetAsInteger()
180 if (out_value && IsType(TYPE_DOUBLE)) in GetAsDouble()
182 return (IsType(TYPE_DOUBLE)); in GetAsDouble()
479 if (!result || !value->IsType(TYPE_BINARY)) in GetBinary()
[all …]
Dvalues_unittest.cc131 ASSERT_TRUE(narrow_value->IsType(Value::TYPE_STRING)); in TEST_F()
135 ASSERT_TRUE(utf16_value->IsType(Value::TYPE_STRING)); in TEST_F()
358 ASSERT_TRUE(copy_null->IsType(Value::TYPE_NULL)); in TEST_F()
364 ASSERT_TRUE(copy_bool->IsType(Value::TYPE_BOOLEAN)); in TEST_F()
373 ASSERT_TRUE(copy_int->IsType(Value::TYPE_INTEGER)); in TEST_F()
382 ASSERT_TRUE(copy_double->IsType(Value::TYPE_DOUBLE)); in TEST_F()
391 ASSERT_TRUE(copy_string->IsType(Value::TYPE_STRING)); in TEST_F()
403 ASSERT_TRUE(copy_string16->IsType(Value::TYPE_STRING)); in TEST_F()
413 ASSERT_TRUE(copy_binary->IsType(Value::TYPE_BINARY)); in TEST_F()
426 ASSERT_TRUE(copy_value->IsType(Value::TYPE_LIST)); in TEST_F()
/external/chromium_org/base/
Dvalues.cc156 DCHECK(IsType(TYPE_NULL)); in DeepCopy()
163 DCHECK(IsType(TYPE_NULL)); in Equals()
164 return other->IsType(TYPE_NULL); in Equals()
206 if (out_value && IsType(TYPE_BOOLEAN)) in GetAsBoolean()
208 return (IsType(TYPE_BOOLEAN)); in GetAsBoolean()
212 if (out_value && IsType(TYPE_INTEGER)) in GetAsInteger()
214 return (IsType(TYPE_INTEGER)); in GetAsInteger()
218 if (out_value && IsType(TYPE_DOUBLE)) in GetAsDouble()
220 else if (out_value && IsType(TYPE_INTEGER)) in GetAsDouble()
222 return (IsType(TYPE_DOUBLE) || IsType(TYPE_INTEGER)); in GetAsDouble()
[all …]
Dvalues_unittest.cc136 ASSERT_TRUE(narrow_value->IsType(Value::TYPE_STRING)); in TEST()
139 ASSERT_TRUE(utf16_value->IsType(Value::TYPE_STRING)); in TEST()
334 EXPECT_TRUE(removed_item->IsType(base::Value::TYPE_INTEGER)); in TEST()
347 EXPECT_TRUE(removed_item->IsType(base::Value::TYPE_BOOLEAN)); in TEST()
390 ASSERT_TRUE(copy_null->IsType(Value::TYPE_NULL)); in TEST()
396 ASSERT_TRUE(copy_bool->IsType(Value::TYPE_BOOLEAN)); in TEST()
405 ASSERT_TRUE(copy_int->IsType(Value::TYPE_INTEGER)); in TEST()
414 ASSERT_TRUE(copy_double->IsType(Value::TYPE_DOUBLE)); in TEST()
423 ASSERT_TRUE(copy_string->IsType(Value::TYPE_STRING)); in TEST()
435 ASSERT_TRUE(copy_string16->IsType(Value::TYPE_STRING)); in TEST()
[all …]
/external/chromium_org/cloud_print/service/win/
Dcloud_print_service_config.cc126 DCHECK(ui_loop_->IsType(base::MessageLoop::TYPE_UI)); in SetupDialog()
131 DCHECK(io_loop_->IsType(base::MessageLoop::TYPE_IO)); in SetupDialog()
143 DCHECK(base::MessageLoop::current()->IsType(base::MessageLoop::TYPE_UI)); in ShowErrorMessageBox()
150 DCHECK(base::MessageLoop::current()->IsType(base::MessageLoop::TYPE_UI)); in AskToCloseChrome()
159 DCHECK(base::MessageLoop::current()->IsType(base::MessageLoop::TYPE_UI)); in SetState()
306 DCHECK(base::MessageLoop::current()->IsType(base::MessageLoop::TYPE_IO)); in UpdateState()
313 DCHECK(base::MessageLoop::current()->IsType(base::MessageLoop::TYPE_IO)); in ShowError()
339 DCHECK(base::MessageLoop::current()->IsType(base::MessageLoop::TYPE_IO)); in Install()
407 DCHECK(base::MessageLoop::current()->IsType(base::MessageLoop::TYPE_IO)); in Start()
415 DCHECK(base::MessageLoop::current()->IsType(base::MessageLoop::TYPE_IO)); in Stop()
[all …]
/external/chromium_org/chrome/browser/policy/
Durl_blacklist_policy_handler.cc28 if (disabled_schemes && !disabled_schemes->IsType(base::Value::TYPE_LIST)) { in CheckPolicySettings()
34 if (url_blacklist && !url_blacklist->IsType(base::Value::TYPE_LIST)) { in CheckPolicySettings()
74 if ((*entry)->IsType(Value::TYPE_STRING)) in ApplyPolicySettings()
Djavascript_policy_handler.cc30 !javascript_enabled->IsType(base::Value::TYPE_BOOLEAN)) { in CheckPolicySettings()
36 if (default_setting && !default_setting->IsType(base::Value::TYPE_INTEGER)) { in CheckPolicySettings()
/external/chromium_org/chrome/renderer/extensions/
Dactivity_log_converter_strategy_unittest.cc36 if (value->IsType(base::Value::TYPE_NULL)) in VerifyNull()
46 if (value->IsType(base::Value::TYPE_BOOLEAN) in VerifyBoolean()
58 if (value->IsType(base::Value::TYPE_INTEGER) in VerifyInteger()
70 if (value->IsType(base::Value::TYPE_DOUBLE) in VerifyDouble()
82 if (value->IsType(base::Value::TYPE_STRING) in VerifyString()
/external/chromium/chrome/browser/extensions/
Dextension_tts_api_util.cc25 if (value->IsType(Value::TYPE_INTEGER)) { in ReadNumberByKey()
30 } else if (value->IsType(Value::TYPE_DOUBLE)) { in ReadNumberByKey()
/external/chromium_org/chrome/browser/extensions/
Dextension_function_util.cc10 if (value->IsType(Value::TYPE_INTEGER)) { in ReadOneOrMoreIntegers()
17 } else if (value->IsType(Value::TYPE_LIST)) { in ReadOneOrMoreIntegers()
/external/chromium_org/third_party/closure_linter/closure_linter/
Dclosurizednamespacesinfo.py387 if (prev_token.IsType(TokenType.IDENTIFIER) or
388 prev_token.IsType(TokenType.NORMAL) and prev_token.string == '.'):
390 elif (not prev_token.IsType(TokenType.WHITESPACE) and
399 if (next_token.IsType(TokenType.IDENTIFIER) or
400 next_token.IsType(TokenType.NORMAL) and next_token.string == '.'):
402 elif (not next_token.IsType(TokenType.WHITESPACE) and
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/
Dclosurizednamespacesinfo.py387 if (prev_token.IsType(TokenType.IDENTIFIER) or
388 prev_token.IsType(TokenType.NORMAL) and prev_token.string == '.'):
390 elif (not prev_token.IsType(TokenType.WHITESPACE) and
399 if (next_token.IsType(TokenType.IDENTIFIER) or
400 next_token.IsType(TokenType.NORMAL) and next_token.string == '.'):
402 elif (not next_token.IsType(TokenType.WHITESPACE) and
/external/chromium/chrome/common/
Djson_value_serializer_unittest.cc25 ASSERT_TRUE(root->IsType(Value::TYPE_DICTIONARY)); in TEST()
32 ASSERT_TRUE(null_value->IsType(Value::TYPE_NULL)); in TEST()
198 ASSERT_TRUE(root.get() && root->IsType(Value::TYPE_LIST)); in ValidateJsonList()
222 ASSERT_TRUE(root.get() && root->IsType(Value::TYPE_LIST)); in TEST()
263 ASSERT_TRUE(root->IsType(Value::TYPE_DICTIONARY)); in TEST_F()
270 ASSERT_TRUE(null_value->IsType(Value::TYPE_NULL)); in TEST_F()
/external/chromium_org/chrome/test/ui/
Djavascript_test_util.cc27 EXPECT_TRUE(root->IsType(Value::TYPE_DICTIONARY)); in JsonDictionaryToMap()
28 if (!root->IsType(Value::TYPE_DICTIONARY)) in JsonDictionaryToMap()
/external/chromium_org/third_party/libaddressinput/chromium/
Djson.cc30 if (parsed && parsed->IsType(base::Value::TYPE_DICTIONARY)) in ParseObject()
39 return val && val->IsType(base::Value::TYPE_STRING); in HasStringValueForKey()
/external/chromium_org/chrome/test/perf/
Ddom_checker_uitest.cc187 EXPECT_TRUE(value->IsType(Value::TYPE_LIST)); in GetTestsFailed()
188 if (!value->IsType(Value::TYPE_LIST)) in GetTestsFailed()
197 EXPECT_TRUE((*it)->IsType(Value::TYPE_STRING)); in GetTestsFailed()
198 if ((*it)->IsType(Value::TYPE_STRING)) { in GetTestsFailed()
/external/chromium_org/chrome/browser/ui/webui/options/
Dcore_options_handler.cc303 if (value->IsType(base::Value::TYPE_BOOLEAN)) { in ProcessUserMetric()
415 if (!args->Get(0, &callback) || !callback->IsType(base::Value::TYPE_STRING)) in HandleFetchPrefs()
430 if (!list_member->IsType(base::Value::TYPE_STRING)) in HandleFetchPrefs()
461 if (!list_member->IsType(base::Value::TYPE_STRING) || in HandleObservePrefs()
512 if (!value->IsType(base::Value::TYPE_BOOLEAN)) { in HandleSetPref()
530 if (!value->IsType(base::Value::TYPE_DOUBLE)) { in HandleSetPref()
536 if (!value->IsType(base::Value::TYPE_STRING)) { in HandleSetPref()
562 if (!value->IsType(base::Value::TYPE_LIST)) { in HandleSetPref()
/external/chromium/chrome/browser/policy/
Dconfiguration_policy_provider.cc32 if (policies->Get(i->name, &value) && value->IsType(i->value_type)) in ApplyPolicyValueTree()
47 if (value && value->IsType(i->value_type)) in ApplyPolicyMap()
/external/chromium_org/chrome/browser/component_updater/
Dcomponent_patcher.cc29 return (root.get() && root->IsType(base::Value::TYPE_LIST)) ? in ReadCommands()
65 if (!(*command)->IsType(base::Value::TYPE_DICTIONARY)) in DifferentialUpdatePatch()
/external/chromium_org/third_party/closure_linter/closure_linter/common/
Dtokens_test.py83 self.assertTrue(a.IsType('fakeType1'))
84 self.assertFalse(a.IsType('fakeType2'))
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/
Dtokens_test.py83 self.assertTrue(a.IsType('fakeType1'))
84 self.assertFalse(a.IsType('fakeType2'))
/external/chromium_org/chrome/service/
Dservice_process_prefs.cc74 !value->IsType(base::Value::TYPE_DICTIONARY)) { in GetDictionary()
84 if (!prefs_->GetValue(key, &value) || !value->IsType(base::Value::TYPE_LIST)) in GetList()

123456789