Home | History | Annotate | Download | only in test

Lines Matching defs:factory_

954   static MockDeathTestFactory* factory_;
957 factory_ = new MockDeathTestFactory;
958 replacer_ = new testing::internal::ReplaceDeathTestFactory(factory_);
964 delete factory_;
965 factory_ = NULL;
981 MockDeathTestFactory* MacroLogicDeathTest::factory_ = NULL;
987 factory_->SetParameters(false, DeathTest::OVERSEE_TEST, 0, true);
990 EXPECT_EQ(0, factory_->AssumeRoleCalls());
991 EXPECT_EQ(0, factory_->WaitCalls());
992 EXPECT_EQ(0, factory_->PassedCalls());
993 EXPECT_EQ(0, factory_->AbortCalls());
994 EXPECT_FALSE(factory_->TestDeleted());
1002 factory_->SetParameters(true, DeathTest::OVERSEE_TEST, 0, true);
1005 EXPECT_EQ(1, factory_->AssumeRoleCalls());
1006 EXPECT_EQ(1, factory_->WaitCalls());
1007 ASSERT_EQ(1, factory_->PassedCalls());
1008 EXPECT_FALSE(factory_->PassedArgument(0));
1009 EXPECT_EQ(0, factory_->AbortCalls());
1010 EXPECT_TRUE(factory_->TestDeleted());
1017 factory_->SetParameters(true, DeathTest::OVERSEE_TEST, 1, true);
1020 EXPECT_EQ(1, factory_->AssumeRoleCalls());
1021 EXPECT_EQ(1, factory_->WaitCalls());
1022 ASSERT_EQ(1, factory_->PassedCalls());
1023 EXPECT_TRUE(factory_->PassedArgument(0));
1024 EXPECT_EQ(0, factory_->AbortCalls());
1025 EXPECT_TRUE(factory_->TestDeleted());
1033 factory_->SetParameters(true, DeathTest::EXECUTE_TEST, 0, true);
1036 EXPECT_EQ(1, factory_->AssumeRoleCalls());
1037 EXPECT_EQ(0, factory_->WaitCalls());
1038 EXPECT_EQ(0, factory_->PassedCalls());
1039 EXPECT_EQ(1, factory_->AbortCalls());
1041 factory_->AbortArgument(0));
1042 EXPECT_TRUE(factory_->TestDeleted());
1049 factory_->SetParameters(true, DeathTest::EXECUTE_TEST, 0, true);
1052 EXPECT_EQ(1, factory_->AssumeRoleCalls());
1053 EXPECT_EQ(0, factory_->WaitCalls());
1054 EXPECT_EQ(0, factory_->PassedCalls());
1060 ASSERT_EQ(2, factory_->AbortCalls());
1062 factory_->AbortArgument(0));
1064 factory_->AbortArgument(1));
1065 EXPECT_TRUE(factory_->TestDeleted());