Lines Matching defs:Mock
40 // clash with ::testing::Mock.
41 class Mock {
43 Mock() {}
48 Mock(const Mock&) = delete;
49 Mock& operator=(const Mock&) = delete;
195 EXPECT_TRUE(Mock::IsNaggy(&raw_foo));
196 EXPECT_FALSE(Mock::IsNice(&raw_foo));
197 EXPECT_FALSE(Mock::IsStrict(&raw_foo));
296 Mock::AllowLeak(leaked);
305 // Tests that NiceMock<Mock> compiles where Mock is a user-defined
306 // class (as opposed to ::testing::Mock).
308 NiceMock< ::Mock> nice;
322 EXPECT_FALSE(Mock::IsNaggy(&nice_foo));
323 EXPECT_TRUE(Mock::IsNice(&nice_foo));
324 EXPECT_FALSE(Mock::IsStrict(&nice_foo));
406 Mock::AllowLeak(leaked);
415 // Tests that NaggyMock<Mock> compiles where Mock is a user-defined
416 // class (as opposed to ::testing::Mock).
418 NaggyMock< ::Mock> naggy;
441 EXPECT_TRUE(Mock::IsNaggy(&naggy_foo));
442 EXPECT_FALSE(Mock::IsNice(&naggy_foo));
443 EXPECT_FALSE(Mock::IsStrict(&naggy_foo));
506 Mock::AllowLeak(leaked);
515 // Tests that StrictMock<Mock> compiles where Mock is a user-defined
516 // class (as opposed to ::testing::Mock).
518 StrictMock< ::Mock> strict;
535 EXPECT_FALSE(Mock::IsNaggy(&strict_foo));
536 EXPECT_FALSE(Mock::IsNice(&strict_foo));
537 EXPECT_TRUE(Mock::IsStrict(&strict_foo));