~3v1n0/unity/scale-window-cast-protection

« back to all changes in this revision

Viewing changes to tests/test_switcher_view.cpp

  • Committer: Marco Trevisan (Treviño)
  • Date: 2016-03-07 18:51:47 UTC
  • mfrom: (4080 unity)
  • mto: This revision was merged to the branch mainline in revision 4085.
  • Revision ID: mail@3v1n0.net-20160307185147-0p1m89up4tqfb6w1
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
 
97
97
      SwitcherModel::Applications apps;
98
98
      apps.push_back(AbstractLauncherIcon::Ptr(app));
99
 
      switcher.SetModel(std::make_shared<SwitcherModel>(apps));
 
99
      switcher.SetModel(std::make_shared<SwitcherModel>(apps, true));
100
100
 
101
101
      return apps[0];
102
102
    }
130
130
  apps.push_back(AbstractLauncherIcon::Ptr(new MockLauncherIcon()));
131
131
  apps.push_back(AbstractLauncherIcon::Ptr(new MockLauncherIcon()));
132
132
  apps.push_back(AbstractLauncherIcon::Ptr(new MockLauncherIcon()));
133
 
  auto model = std::make_shared<SwitcherModel>(apps);
 
133
  auto model = std::make_shared<SwitcherModel>(apps, false);
134
134
 
135
135
  switcher.SetModel(model);
136
136
  ASSERT_EQ(switcher.model_, model);