Lines Matching refs:NonCopyable
81 class NonCopyable { class
83 NonCopyable(int value) : value_(value) {} in NonCopyable() function in pw::__anon15772fda0111::NonCopyable
85 NonCopyable(const NonCopyable&) = delete;
86 NonCopyable& operator=(const NonCopyable&) = delete;
88 bool operator==(const NonCopyable& rhs) const { return value_ == rhs.value_; } in operator ==()
89 bool operator!=(const NonCopyable& rhs) const { return value_ != rhs.value_; } in operator !=()
98 EXPECT_TRUE(NonCopyable(6)); in TEST()
99 EXPECT_FALSE(NonCopyable(-1)); in TEST()
101 const NonCopyable this_one(100); in TEST()
105 EXPECT_EQ(NonCopyable(5), NonCopyable(5)); in TEST()
106 EXPECT_NE(NonCopyable(5), NonCopyable(6)); in TEST()