athena/home/home_card_unittest.cc
TEST_F(HomeCardTest, AppSelection) {
  EXPECT_EQ(HomeCard::VISIBLE_MINIMIZED, HomeCard::Get()->GetState());

  WindowManager::GetInstance()->ToggleOverview();
  EXPECT_EQ(HomeCard::VISIBLE_BOTTOM, HomeCard::Get()->GetState());

  athena::ActivityManager::Get()->AddActivity(
      athena::ActivityFactory::Get()->CreateWebActivity(
          NULL, GURL("http://www.google.com/")));
  EXPECT_EQ(HomeCard::VISIBLE_MINIMIZED, HomeCard::Get()->GetState());
}
// Verify if the home card is correctly minimized after app launch.
Verify if the home card is correctly minimized after app launch.
Verify if the home card is correctly minimized after app launch .
TEST_F(HomeCardTest, AppSelection) {
  EXPECT_EQ(HomeCard::VISIBLE_MINIMIZED, HomeCard::Get()->GetState());
  WindowManager::GetInstance()->ToggleOverview();
  EXPECT_EQ(HomeCard::VISIBLE_BOTTOM, HomeCard::Get()->GetState());
  athena::ActivityManager::Get()->AddActivity(
      athena::ActivityFactory::Get()->CreateWebActivity(
          NULL, GURL("http://www.google.com/")));
  EXPECT_EQ(HomeCard::VISIBLE_MINIMIZED, HomeCard::Get()->GetState());
}
TEST_F ( HomeCardTest , AppSelection ) { EXPECT_EQ ( HomeCard :: VISIBLE_MINIMIZED , HomeCard :: Get ( ) -> GetState ( ) ) ; WindowManager :: GetInstance ( ) -> ToggleOverview ( ) ; EXPECT_EQ ( HomeCard :: VISIBLE_BOTTOM , HomeCard :: Get ( ) -> GetState ( ) ) ; athena :: ActivityManager :: Get ( ) -> AddActivity ( athena :: ActivityFactory :: Get ( ) -> CreateWebActivity ( NULL , GURL ( " " ) ) ) ; EXPECT_EQ ( HomeCard :: VISIBLE_MINIMIZED , HomeCard :: Get ( ) -> GetState ( ) ) ; }
Verify if the home card is correctly minimized after app launch.
Verify if the home card is correctly minimized after app launch .