Home
last modified time | relevance | path

Searched refs:value_ (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/contrib/googletest/googletest/test/
H A Dgtest-typed-test_test.cc66 CommonTest() : value_(1) {} in CommonTest()
68 ~CommonTest() override { EXPECT_EQ(3, value_); } in ~CommonTest()
71 EXPECT_EQ(1, value_); in SetUp()
72 value_++; in SetUp()
76 EXPECT_EQ(2, value_); in TearDown()
77 value_++; in TearDown()
80 T value_; member in CommonTest
110 EXPECT_EQ(2, this->value_); in TYPED_TEST()
122 EXPECT_EQ(static_cast<TypeParam>(2), this->value_); in TYPED_TEST()
270 EXPECT_EQ(2, this->value_); in TYPED_TEST_P()
[all …]
H A Dgoogletest-param-test-test.cc215 explicit DogAdder(const char* a_value) : value_(a_value) {} in DogAdder()
216 DogAdder(const DogAdder& other) : value_(other.value_.c_str()) {} in DogAdder()
219 if (this != &other) value_ = other.value_; in operator =()
224 msg << value_ << other.value_; in operator +()
227 bool operator<(const DogAdder& other) const { return value_ < other.value_; } in operator <()
228 const std::string& value() const { return value_; } in value()
231 std::string value_; member in DogAdder
250 explicit IntWrapper(int a_value) : value_(a_value) {} in IntWrapper()
251 IntWrapper(const IntWrapper& other) : value_(other.value_) {} in IntWrapper()
254 value_ = other.value_; in operator =()
[all …]
H A Dgoogletest-list-tests-unittest_.cc71 explicit MyType(const std::string& a_value) : value_(a_value) {} in MyType()
73 const std::string& value() const { return value_; } in value()
76 std::string value_; member in MyType
H A Dgoogletest-printers-test.cc111 UnprintableTemplateInGlobal() : value_() {} in UnprintableTemplateInGlobal()
114 T value_; member in UnprintableTemplateInGlobal
179 explicit PrintableViaPrintToTemplate(const T& a_value) : value_(a_value) {} in PrintableViaPrintToTemplate()
181 const T& value() const { return value_; } in value()
184 T value_; member in foo::PrintableViaPrintToTemplate
196 StreamableTemplateInFoo() : value_() {} in StreamableTemplateInFoo()
198 const T& value() const { return value_; } in value()
201 T value_; member in foo::StreamableTemplateInFoo
258 explicit Wrapper(T&& value) : value_(std::forward<T>(value)) {} in Wrapper()
260 const T& value() const { return value_; } in value()
[all …]
H A Dgoogletest-port-test.cc1046 : value_(0), mutex_(mutex), random_(42) {} in AtomicCounterWithMutex()
1050 int temp = value_; in Increment()
1080 value_ = temp + 1; in Increment()
1082 int value() const { return value_; } in value()
1085 volatile int value_; member in testing::internal::AtomicCounterWithMutex
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dtinytest_macros.h123 type value_ = val1_; \
126 value_ = val2_; \
145 {print_=value_;},{},die_on_fail)
149 {print_=value_?value_:"<NULL>";},{},die_on_fail)
193 { print_ = tinytest_format_hex_(value_, (len)); }, \
/freebsd/contrib/libevent/test/
H A Dtinytest_macros.h123 type value_ = val1_; \
126 value_ = val2_; \
145 {print_=value_;},{},die_on_fail)
149 {print_=value_?value_:"<NULL>";},{},die_on_fail)
193 { print_ = tinytest_format_hex_(value_, (len)); }, \
/freebsd/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-param-util.h233 : base_(base), value_(value), index_(index), step_(step) {} in Iterator()
240 value_ = static_cast<T>(value_ + step_); in Advance()
246 const T* Current() const override { return &value_; } in Current()
262 value_(other.value_), in Iterator()
270 T value_; variable
327 value_.reset(); in Advance()
340 if (value_.get() == nullptr) value_.reset(new T(*iterator_)); in Current()
341 return value_.get(); in Current()
368 mutable std::unique_ptr<const T> value_; variable
974 if (it_ != end_) value_ = std::make_shared<To>(static_cast<To>(*it_)); in Iterator()
[all …]
H A Dgtest-port.h1619 ValueHolder() : value_() {}
1620 explicit ValueHolder(const T& value) : value_(value) {}
1622 T* pointer() { return &value_; }
1625 T value_;
1664 explicit InstanceValueHolderFactory(const T& value) : value_(value) {}
1666 return new ValueHolder(value_);
1670 const T value_; // The value for each thread.
1822 ValueHolder() : value_() {}
1823 explicit ValueHolder(const T& value) : value_(value) {}
1825 T* pointer() { return &value_; }
[all …]
H A Dgtest-internal.h293 explicit FloatingPoint(const RawType& x) { u_.value_ = x; } in FloatingPoint()
303 return fp.u_.value_; in ReinterpretBits()
348 RawType value_; // The raw floating-point number. member
/freebsd/contrib/kyua/utils/config/
H A Dnodes.ipp205 /// \param value_ The new value to set the node to.
210 config::typed_leaf_node< ValueType >::set(const value_type& value_)
212 validate(value_);
213 _value = optional< value_type >(value_);
321 /// \param value_ The new value to set the node to.
326 config::base_set_node< ValueType >::set(const value_type& value_)
328 validate(value_);
329 _value = optional< value_type >(value_);
H A Dlua_module_test.cpp54 explicit custom_type(const int value_) : in custom_type()
55 value(value_) in custom_type()
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-actions.h627 explicit FixedValueProducer(T value) : value_(value) {}
628 T Produce() override { return value_; }
631 const T value_;
930 explicit ReturnAction(R value) : value_(std::move(value)) {}
940 return Impl<U>(std::move(value_));
951 return Impl<U>(value_);
1085 R value_;
1191 explicit ReturnRefOfCopyAction(const T& value) : value_(value) {} // NOLINT
1203 return Action<F>(new Impl<F>(value_));
1214 explicit Impl(const T& value) : value_(value) {} // NOLINT
[all …]
H A Dgmock-spec-builders.h1346 explicit ReferenceOrValueWrapper(T value) : value_(std::move(value)) {} in ReferenceOrValueWrapper()
1351 T Unwrap() { return std::move(value_); } in Unwrap()
1357 const T& Peek() const { return value_; } in Peek()
1360 T value_;
/freebsd/contrib/lua/src/
H A Dlobject.h65 #define TValuefields Value value_; lu_byte tt_
72 #define val_(o) ((o)->value_)
120 io1->value_ = io2->value_; settt_(io1, io2->tt_); \
715 n_->u.key_val = io_->value_; n_->u.key_tt = io_->tt_; \
722 io_->value_ = n_->u.key_val; io_->tt_ = n_->u.key_tt; \
/freebsd/contrib/kyua/utils/format/
H A Dformatter_test.cpp56 int_wrapper(const int value_) : _value(value_) in int_wrapper() argument
/freebsd/contrib/googletest/googletest/include/gtest/
H A Dgtest-typed-test.h53 T value_;
72 TypeParam n = this->value_;
H A Dgtest.h375 : key_(a_key), value_(a_value) {} in TestProperty()
381 const char* value() const { return value_.c_str(); } in value()
384 void SetValue(const std::string& new_value) { value_ = new_value; } in SetValue()
390 std::string value_; variable
/freebsd/contrib/kyua/utils/
H A Doptional_test.cpp55 test_alloc(int value_) : value(value_) in test_alloc() argument
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-more-actions_test.cc151 Foo() : value_(123) {} in Foo()
153 int Nullary() const { return value_; } in Nullary()
155 short Unary(long x) { return static_cast<short>(value_ + x); } // NOLINT in Unary()
159 int Ternary(int x, bool y, char z) { return value_ + x + y * z; } in Ternary()
162 return a + b + c + d + value_; in SumOf4()
199 int value_; member in testing::gmock_more_actions_test::Foo
1442 : value_(a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10) {} in TenArgConstructorClass()
1443 int value_; member in testing::gmock_more_actions_test::TenArgConstructorClass
1480 explicit BoolResetter(bool* value) : value_(value) {} in BoolResetter()
1481 ~BoolResetter() { *value_ = false; } in ~BoolResetter()
[all …]
H A Dgmock-actions_test.cc358 MyDefaultConstructible() : value_(42) {} in MyDefaultConstructible()
360 int value() const { return value_; } in value()
363 int value_; member in testing::__anon10e2b6f40111::MyDefaultConstructible
370 explicit MyNonDefaultConstructible(int a_value) : value_(a_value) {} in MyNonDefaultConstructible()
372 int value() const { return value_; } in value()
375 int value_; member in testing::__anon10e2b6f40111::MyNonDefaultConstructible
1219 Foo() : value_(123) {} in Foo()
1221 int Nullary() const { return value_; } in Nullary()
1224 int value_; member in testing::__anon10e2b6f40111::Foo
1745 : value_(a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10) {} in TenArgConstructorClass()
[all …]
H A Dgmock-matchers-misc_test.cc100 explicit NotCopyable(int a_value) : value_(a_value) {} in NotCopyable()
102 int value() const { return value_; } in value()
113 int value_; member in testing::gmock_matchers_test::__anonebb175b30111::NotCopyable
684 : value_(std::move(value)), has_value_(true) {} in SampleOptional()
685 SampleOptional() : value_(), has_value_(false) {} in SampleOptional()
687 const T& operator*() const { return value_; } in operator *()
690 T value_; member in testing::gmock_matchers_test::__anonebb175b30111::SampleOptional
1142 explicit UncopyableFoo(char value) : value_(value) { (void)value_; } in UncopyableFoo()
1148 char value_; member in testing::gmock_matchers_test::__anonebb175b30111::UncopyableFoo
H A Dgmock-matchers-containers_test.cc351 Uncopyable() : value_(-1) {} in Uncopyable()
352 explicit Uncopyable(int a_value) : value_(a_value) {} in Uncopyable()
354 int value() const { return value_; } in value()
355 void set_value(int i) { value_ = i; } in set_value()
358 int value_; member in testing::gmock_matchers_test::__anon540e1b3d0111::Uncopyable
1385 explicit PostIncrProxy(const value_type& value) : value_(value) {} in PostIncrProxy()
1386 value_type operator*() const { return value_; } in operator *()
1389 value_type value_; member in testing::gmock_matchers_test::__anon540e1b3d0111::Streamlike::ConstIter::PostIncrProxy
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlobject.h101 #define TValuefields Value value_; int tt_
110 #define val_(o) ((o)->value_)
239 io1->value_ = io2->value_; io1->tt_ = io2->tt_; \
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_syscalls_netbsd.inc1797 (long long timerid_, long long flags_, void *value_, void *ovalue_) {
1801 (long long res, long long timerid_, long long flags_, void *value_,
1805 PRE_SYSCALL(compat_50_timer_gettime)(long long timerid_, void *value_) {
1809 (long long res, long long timerid_, void *value_) {
1841 PRE_SYSCALL(_ksem_init)(long long value_, void *idp_) { /* Nothing to do */ }
1842 POST_SYSCALL(_ksem_init)(long long res, long long value_, void *idp_) {
1846 (void *name_, long long oflag_, long long mode_, long long value_, void *idp_) {
1854 long long value_, void *idp_) {
1882 PRE_SYSCALL(_ksem_getvalue)(long long id_, void *value_) { /* Nothing to do */ }
1883 POST_SYSCALL(_ksem_getvalue)(long long res, long long id_, void *value_) {
[all …]

12