Lines Matching refs:Test1
418 class Test1 { in TEST() class
420 explicit Test1(int foo) : foo_(foo) {} in TEST() function in perfetto::base::TEST::Test1
432 explicit Test2(Test1&& other) : bar_(other.foo()) {} in TEST()
440 Optional<Test1> first(in_place, 42); in TEST()
830 struct Test1 { in TEST() struct
850 explicit Test2(const Test1&) : state(State::COPY_CONSTRUCTED_FROM_TEST1) {} in TEST()
851 explicit Test2(Test1&& test1) : state(State::MOVE_CONSTRUCTED_FROM_TEST1) { in TEST()
852 test1.state = Test1::State::MOVED; in TEST()
854 Test2& operator=(const Test1&) { in TEST()
858 Test2& operator=(Test1&& test1) { in TEST()
860 test1.state = Test1::State::MOVED; in TEST()
868 Optional<Test1> a(in_place); in TEST()
874 EXPECT_EQ(Test1::State::CONSTRUCTED, a->state); in TEST()
879 Optional<Test1> a(in_place); in TEST()
885 EXPECT_EQ(Test1::State::CONSTRUCTED, a->state); in TEST()
890 Optional<Test1> a(in_place); in TEST()
896 EXPECT_EQ(Test1::State::MOVED, a->state); in TEST()
901 Optional<Test1> a(in_place); in TEST()
907 EXPECT_EQ(Test1::State::MOVED, a->state); in TEST()
930 explicit Test3(const Test1&) : state(State::COPY_CONSTRUCTED_FROM_TEST1) {} in TEST()
931 explicit Test3(Test1&& test1) : state(State::MOVE_CONSTRUCTED_FROM_TEST1) { in TEST()
932 test1.state = Test1::State::MOVED; in TEST()
934 explicit Test3(const Optional<Test1>&) in TEST()
936 explicit Test3(Optional<Test1>&& test1) in TEST()
940 test1->state = Test1::State::MOVED; in TEST()
942 Test3& operator=(const Test1&) { in TEST()
946 Test3& operator=(Test1&& test1) { in TEST()
948 test1.state = Test1::State::MOVED; in TEST()
951 Test3& operator=(const Optional<Test1>&) { in TEST()
955 Test3& operator=(Optional<Test1>&& test1) { in TEST()
959 test1->state = Test1::State::MOVED; in TEST()
967 Optional<Test1> a(in_place); in TEST()
973 EXPECT_EQ(Test1::State::CONSTRUCTED, a->state); in TEST()
978 Optional<Test1> a(in_place); in TEST()
984 EXPECT_EQ(Test1::State::CONSTRUCTED, a->state); in TEST()
989 Optional<Test1> a(in_place); in TEST()
995 EXPECT_EQ(Test1::State::MOVED, a->state); in TEST()
1000 Optional<Test1> a(in_place); in TEST()
1006 EXPECT_EQ(Test1::State::MOVED, a->state); in TEST()
2138 struct Test1 { in TEST() struct
2139 Test1(const Test1&) = default; in TEST()
2140 Test1(Test1&&) {} in TEST() function
2141 Test1& operator=(Test1&&) = default; in TEST()
2170 !noexcept(Optional<Test1>(std::declval<Optional<Test1>>())), in TEST()
2195 !noexcept(std::declval<Optional<Test1>>() = in TEST()
2196 std::declval<Optional<Test1>>()), in TEST()