~azzar1/unity/fix-839717-5.0

« back to all changes in this revision

Viewing changes to tests/test_switcher_controller.cpp

  • Committer: Łukasz 'sil2100' Zemczak
  • Date: 2012-06-05 14:18:33 UTC
  • mto: This revision was merged to the branch mainline in revision 2359.
  • Revision ID: lukasz.zemczak@canonical.com-20120605141833-t66bnrmjb7cu3734
Added a unit test for the switcher show functionality. The same as in the previous proposition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
  EXPECT_TRUE(unity::TimeUtil::TimeDelta(&controller.detail_timespec_, &current) >= 1000);
157
157
}
158
158
 
 
159
TEST(TestSwitcherController, ShowSwitcher)
 
160
{
 
161
  MockSwitcherController controller;
 
162
  std::vector<unity::launcher::AbstractLauncherIcon::Ptr> results;
 
163
 
 
164
  controller.Show(ShowMode::ALL, SortMode::LAUNCHER_ORDER, false, results);
 
165
 
 
166
  Utils::WaitUntil(controller.view_shown_, 2);
 
167
  ASSERT_TRUE(controller.view_shown_);
 
168
}
 
169
 
159
170
}