Home
last modified time | relevance | path

Searched refs:UserType (Results 1 – 16 of 16) sorted by relevance

/external/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
Dctor.pass.cpp27 struct UserType { struct
30 UserType() noexcept {} in UserType() argument
31 constexpr explicit UserType(int d) noexcept : i(d) {} in UserType() argument
33 friend bool operator==(const UserType& x, const UserType& y) { in operator ==()
62 TestFunc<UserType>()(); in main()
/external/libmojo/mojo/public/cpp/bindings/lib/
Darray_serialization.h111 using UserType = typename std::remove_const<MaybeConstUserType>::type;
115 using Traits = ArrayTraits<UserType>;
151 UserType* output,
155 ArrayIterator<Traits, UserType> iterator(*output);
179 using UserType = typename std::remove_const<MaybeConstUserType>::type;
183 using Traits = ArrayTraits<UserType>;
209 UserType* output,
213 ArrayIterator<Traits, UserType> iterator(*output);
232 using UserType = typename std::remove_const<MaybeConstUserType>::type;
233 using Traits = ArrayTraits<UserType>;
[all …]
Dserialization_util.h35 typename UserType,
37 bool CallIsNullIfExists(const UserType& input) { in CallIsNullIfExists()
43 typename UserType,
45 bool CallIsNullIfExists(const UserType& input) { in CallIsNullIfExists()
62 typename UserType,
64 bool CallSetToNullIfExists(UserType* output) { in CallSetToNullIfExists()
70 typename UserType,
73 bool CallSetToNullIfExists(UserType* output) { in CallSetToNullIfExists()
Dnative_enum_serialization.h24 using UserType = typename std::remove_const<MaybeConstUserType>::type; member
25 using Traits = IPC::ParamTraits<UserType>;
32 static void Serialize(UserType input, int32_t* output) { in Serialize()
48 static bool Deserialize(int32_t input, UserType* output) { in Deserialize()
Dserialization.h31 template <typename MojomType, typename DataArrayType, typename UserType>
32 DataArrayType StructSerializeImpl(UserType* input) { in StructSerializeImpl()
69 template <typename MojomType, typename DataArrayType, typename UserType>
70 bool StructDeserializeImpl(const DataArrayType& input, UserType* output) { in StructDeserializeImpl()
Dstring_serialization.h22 using UserType = typename std::remove_const<MaybeConstUserType>::type;
23 using Traits = StringTraits<UserType>;
59 UserType* output,
Dmap_serialization.h23 using UserType = typename std::remove_const<MaybeConstUserType>::type;
24 using Traits = MapTraits<UserType>;
82 using UserType = typename std::remove_const<MaybeConstUserType>::type;
83 using Traits = MapTraits<UserType>;
149 UserType* output,
Dnative_struct_serialization.h28 using UserType = typename std::remove_const<MaybeConstUserType>::type; member
29 using Traits = IPC::ParamTraits<UserType>;
66 UserType* out, in Deserialize()
/external/libmojo/mojo/public/tools/bindings/generators/cpp_templates/
Denum_serialization_declaration.tmpl16 using UserType = typename std::remove_const<MaybeConstUserType>::type;
17 using Traits = EnumTraits<{{mojom_type}}, UserType>;
19 static void Serialize(UserType input, int32_t* output) {
23 static bool Deserialize(int32_t input, UserType* output) {
Dstruct_data_view_declaration.tmpl12 template <typename UserType>
13 bool Read{{name|under_to_camel}}(UserType* value) {
25 template <typename UserType>
26 bool Read{{name|under_to_camel}}(UserType* value) const {
Dunion_serialization_declaration.tmpl29 using UserType = typename std::remove_const<MaybeConstUserType>::type;
31 static_assert(std::is_same<MaybeConstUserType, UserType>::value,
33 static_assert(std::is_same<UserType, {{mojom_type}}Ptr>::value,
Dwrapper_class_declaration.tmpl58 template <typename UserType>
59 static {{serialization_result_type}} Serialize(UserType* input) {
64 template <typename UserType>
66 UserType* output) {
Dstruct_serialization_declaration.tmpl33 using UserType = typename std::remove_const<MaybeConstUserType>::type;
34 using Traits = StructTraits<{{mojom_type}}, UserType>;
71 UserType* output,
/external/google-breakpad/src/testing/test/
Dgmock-actions_test.cc194 struct UserType { struct
195 UserType() : value(0) {} in UserType() argument
201 EXPECT_FALSE(BuiltInDefaultValue<UserType>::Exists()); in TEST()
216 BuiltInDefaultValue<UserType>::Get(); in TEST()
223 EXPECT_FALSE(DefaultValue<const UserType>::IsSet()); in TEST()
229 EXPECT_FALSE(DefaultValue<const UserType>::Exists()); in TEST()
232 DefaultValue<const UserType>::Set(UserType()); in TEST()
235 EXPECT_EQ(0, DefaultValue<const UserType>::Get().value); in TEST()
238 EXPECT_TRUE(DefaultValue<const UserType>::Exists()); in TEST()
241 DefaultValue<const UserType>::Clear(); in TEST()
[all …]
/external/libmojo/mojo/public/cpp/bindings/tests/
Dmap_common_test.h159 using UserType = ArrayType<MapType<int32_t, int8_t>>;
161 UserType array(1);
178 UserType deserialized_array;
189 using UserType = ArrayType<MapType<StringType, ArrayType<bool>>>;
191 UserType array(1);
214 UserType deserialized_array;
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.elem/
Dtuple.by.type.fail.cpp15 struct UserType {}; struct
18 std::tuple<long, long, char, std::string, char, UserType, char> t1; in test_bad_index()