Lines Matching refs:a
131 std::unique_ptr<Counter> a(p); in TEST_F() local
135 ASSERT_EQ(p, a.get()); in TEST_F()
138 b = std::move(a); in TEST_F()
141 ASSERT_EQ(nullptr, a.get()); in TEST_F()
152 std::shared_ptr<Counter> a; in TEST_F() local
155 a.reset(new Counter()); in TEST_F()
157 b = a; in TEST_F()
159 ASSERT_NE(nullptr, a.get()); in TEST_F()
160 ASSERT_EQ(a.get(), b.get()); in TEST_F()
161 a.reset(); in TEST_F()
171 std::shared_ptr<Counter> a(p); in TEST_F() local
175 ASSERT_EQ(p, a.get()); in TEST_F()
178 b = std::move(a); in TEST_F()
181 ASSERT_EQ(nullptr, a.get()); in TEST_F()
216 std::weak_ptr<Counter> a(s); in TEST_F() local
220 ASSERT_EQ(1, a.use_count()); in TEST_F()
223 b = std::move(a); in TEST_F()
226 ASSERT_EQ(0, a.use_count()); in TEST_F()
239 std::string a("abcdefghijklmnopqrstuvwxyz!!!"); in TEST_F() local
241 ASSERT_NE(0, strcmp(a.c_str(), b.c_str())); in TEST_F()
243 ASSERT_EQ(0, strcmp(a.c_str(), b.c_str())); in TEST_F()
249 std::string a("foo"); in TEST_F() local
251 ASSERT_EQ(0, strcmp(a.c_str(), "foo")); in TEST_F()
254 b = std::move(a); in TEST_F()
256 ASSERT_NE(0, strcmp(a.c_str(), "foo")); in TEST_F()
284 std::vector<Counter> a(3); in TEST_F() local
288 EXPECT_EQ(3U, a.size()); in TEST_F()
291 b = std::move(a); in TEST_F()
296 a = {}; in TEST_F()