Home
last modified time | relevance | path

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

123

/external/libbrillo/policy/tests/
Dlibpolicy_unittest.cc114 std::string string_value; in TEST() local
115 ASSERT_TRUE(policy.GetReleaseChannel(&string_value)); in TEST()
116 ASSERT_EQ("stable-channel", string_value); in TEST()
130 ASSERT_TRUE(policy.GetTargetVersionPrefix(&string_value)); in TEST()
131 ASSERT_EQ("42.0.", string_value); in TEST()
139 ASSERT_TRUE(policy.GetOpenNetworkConfiguration(&string_value)); in TEST()
140 ASSERT_EQ("{}", string_value); in TEST()
142 ASSERT_TRUE(policy.GetOwner(&string_value)); in TEST()
143 ASSERT_EQ("", string_value); in TEST()
177 std::string string_value; in TEST() local
[all …]
/external/libbrillo/brillo/dbus/
Ddbus_param_writer_unittest.cc38 std::string string_value; in TEST() local
43 EXPECT_TRUE(PopValueFromReader(&reader, &string_value)); in TEST()
47 EXPECT_EQ("foo", string_value); in TEST()
93 std::string string_value; in TEST() local
98 EXPECT_TRUE(PopValueFromReader(&reader, &string_value)); in TEST()
102 EXPECT_EQ("bar", string_value); in TEST()
152 std::string string_value; in TEST() local
157 EXPECT_TRUE(PopValueFromReader(&reader, &string_value)); in TEST()
161 EXPECT_EQ("bar", string_value); in TEST()
Ddata_serialization_unittest.cc198 std::string string_value; in TEST() local
212 EXPECT_TRUE(PopValueFromReader(&reader, &string_value)); in TEST()
226 EXPECT_EQ("string", string_value); in TEST()
294 std::string string_value; in TEST() local
310 EXPECT_TRUE(PopVariantValueFromReader(&reader, &string_value)); in TEST()
326 EXPECT_EQ("data", string_value); in TEST()
359 Any string_value; in TEST() local
373 EXPECT_TRUE(PopValueFromReader(&reader, &string_value)); in TEST()
387 EXPECT_EQ("data", string_value.Get<std::string>()); in TEST()
/external/webrtc/talk/app/webrtc/
Dmediaconstraintsinterface.cc148 std::string string_value; in FindConstraint() local
152 if (constraints->GetMandatory().FindFirst(key, &string_value)) { in FindConstraint()
155 return rtc::FromString(string_value, value); in FindConstraint()
157 if (constraints->GetOptional().FindFirst(key, &string_value)) { in FindConstraint()
158 return rtc::FromString(string_value, value); in FindConstraint()
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/
Dwebapp_test_util.py46 if request.string_value:
47 request.string_value = '+%s' % request.string_value
243 if request.string_value:
244 request.string_value = '+%s' % request.string_value
249 return test_util.OptionalMessage(string_value=self.__message)
253 request.string_value = '+%s' % request.string_value
Dend2end_test.py37 self.assertEquals(test_util.OptionalMessage(string_value='+blar'),
38 self.stub.optional_message(string_value='blar'))
51 self.assertEquals(test_util.OptionalMessage(string_value='uninitialized'),
53 self.assertEquals(test_util.OptionalMessage(string_value='initialized'),
Dprotobuf_test.py67 proto.string_value = u'a string'
81 proto.string_value = u'a string\u044f'
102 proto.string_value.append(u'a string\u044f')
103 proto.string_value.append(u'another string')
160 proto.string_value = u'Latin'
Dtest_util.py291 string_value = messages.StringField(7, variant=messages.Variant.STRING) variable in OptionalMessage
327 string_value = messages.StringField(7, variable in RepeatedMessage
468 message.string_value = u'a string'
482 message.string_value = u'a string\u044f'
497 message.string_value = [u'a string\u044f', u'another string']
529 message.string_value = 'Latin'
Dprotourlencode_test.py100 self.assertEquals('a string', message.string_value)
134 self.assertTrue('hello', message.sub_message.sub_message.string_value)
164 message.sub_message.sub_messages[1].string_value)
177 self.assertEquals(['hi', 'dups overwrite'], message.string_value)
Dprotorpc_test.proto46 optional string string_value = 7; field
69 repeated string string_value = 7; field
/external/google-benchmark/src/
Dcommandlineflags.cc107 const char* const string_value = GetEnv(env_var.c_str()); in BoolFromEnv() local
108 return string_value == nullptr ? default_value : strcmp(string_value, "0") != 0; in BoolFromEnv()
116 const char* const string_value = GetEnv(env_var.c_str()); in Int32FromEnv() local
117 if (string_value == nullptr) { in Int32FromEnv()
123 if (!ParseInt32(std::string("Environment variable ") + env_var, string_value, in Int32FromEnv()
/external/libbrillo/brillo/
Dkey_value_store.cc105 string string_value; in GetBoolean() local
106 if (!GetString(key, &string_value)) in GetBoolean()
109 if (string_value == kTrueValue) { in GetBoolean()
112 } else if (string_value == kFalseValue) { in GetBoolean()
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/wsgi/
Dservice_test.py72 self.stub.optional_message(string_value='alternate-protocol')
85 self.stub.optional_message, string_value='alternate-protocol')
89 self.stub.optional_message(string_value='alternate-protocol')
194 self.assertEquals('service', response.string_value)
197 self.assertEquals('other-service', response.string_value)
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dextra_types_test.py38 extra_types.JsonValue(is_null=True, string_value='a'))
41 extra_types.JsonValue(integer_value=3, string_value='a'))
61 extra_types.JsonValue(string_value='four'),
89 value=extra_types.JsonValue(string_value='eleventeen')),
103 value = extra_types.JsonValue(string_value='abc')
/external/protobuf/gtest/src/
Dgtest-port.cc674 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv() local
675 return string_value == NULL ? in BoolFromGTestEnv()
676 default_value : strcmp(string_value, "0") != 0; in BoolFromGTestEnv()
684 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv() local
685 if (string_value == NULL) { in Int32FromGTestEnv()
692 string_value, &result)) { in Int32FromGTestEnv()
/external/libchrome/base/trace_event/
Dtrace_event_memory_overhead.cc80 const StringValue* string_value = nullptr; in AddValue() local
81 value.GetAsString(&string_value); in AddValue()
83 AddString(string_value->GetString()); in AddValue()
Dtrace_event_argument.cc269 const StringValue* string_value; in SetBaseValueWithCopiedName() local
270 value.GetAsString(&string_value); in SetBaseValueWithCopiedName()
271 SetStringWithCopiedName(name, string_value->GetString()); in SetBaseValueWithCopiedName()
323 const StringValue* string_value; in AppendBaseValue() local
324 value.GetAsString(&string_value); in AppendBaseValue()
325 AppendString(string_value->GetString()); in AppendBaseValue()
/external/mesa3d/src/gtest/src/
Dgtest-port.cc709 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv() local
710 return string_value == NULL ? in BoolFromGTestEnv()
711 default_value : strcmp(string_value, "0") != 0; in BoolFromGTestEnv()
719 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv() local
720 if (string_value == NULL) { in Int32FromGTestEnv()
727 string_value, &result)) { in Int32FromGTestEnv()
/external/llvm/utils/unittest/googletest/src/
Dgtest-port.cc713 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv() local
714 return string_value == NULL ? in BoolFromGTestEnv()
715 default_value : strcmp(string_value, "0") != 0; in BoolFromGTestEnv()
723 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv() local
724 if (string_value == NULL) { in Int32FromGTestEnv()
731 string_value, &result)) { in Int32FromGTestEnv()
/external/libchrome/base/test/
Dtest_timeouts.cc46 std::string string_value(base::CommandLine::ForCurrentProcess()-> in InitializeTimeout() local
49 base::StringToInt(string_value, &timeout); in InitializeTimeout()
/external/google-breakpad/src/testing/gtest/src/
Dgtest-port.cc750 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv() local
751 return string_value == NULL ? in BoolFromGTestEnv()
752 default_value : strcmp(string_value, "0") != 0; in BoolFromGTestEnv()
760 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv() local
761 if (string_value == NULL) { in Int32FromGTestEnv()
768 string_value, &result)) { in Int32FromGTestEnv()
/external/gtest/src/
Dgtest-port.cc799 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv() local
800 return string_value == NULL ? in BoolFromGTestEnv()
801 default_value : strcmp(string_value, "0") != 0; in BoolFromGTestEnv()
809 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv() local
810 if (string_value == NULL) { in Int32FromGTestEnv()
817 string_value, &result)) { in Int32FromGTestEnv()
/external/webrtc/webrtc/base/
Dbind_unittest.cc133 const std::string string_value("test string"); in TEST() local
134 EXPECT_EQ(string_value, Bind(&MethodBindTester::Identity<std::string>, in TEST()
135 &object, string_value)()); in TEST()
/external/libchrome/base/
Dvalues_unittest.cc73 std::string string_value; in TEST() local
81 ASSERT_FALSE(mixed_list->GetString(2, &string_value)); in TEST()
82 ASSERT_EQ("", string_value); in TEST()
97 ASSERT_TRUE(mixed_list->GetString(3, &string_value)); in TEST()
98 ASSERT_EQ("foo", string_value); in TEST()
154 const StringValue* string_value = NULL; in TEST() local
157 ASSERT_TRUE(narrow_value->GetAsString(&string_value)); in TEST()
160 ASSERT_EQ(string_value->GetString(), narrow); in TEST()
164 ASSERT_TRUE(utf16_value->GetAsString(&string_value)); in TEST()
167 ASSERT_EQ(string_value->GetString(), narrow); in TEST()
[all …]
/external/vulkan-validation-layers/tests/gtest-1.7.0/src/
Dgtest-port.cc1151 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv() local
1152 return string_value == NULL ? in BoolFromGTestEnv()
1153 default_value : strcmp(string_value, "0") != 0; in BoolFromGTestEnv()
1161 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv() local
1162 if (string_value == NULL) { in Int32FromGTestEnv()
1169 string_value, &result)) { in Int32FromGTestEnv()

123