diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-03-14 01:18:36 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-03-14 01:18:36 +0100 |
| commit | f008c215b5c2264783a6bc59d34ef180f481fb4b (patch) | |
| tree | adda3cfb9055fd0b2330dd810912360e6d1bb01e /tests | |
| parent | 08b227b6f508a15d4ee8d12948157d87302ab627 (diff) | |
TestVolumeLauncherIcon: add Activate test
(bzr r3212.1.2)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_volume_launcher_icon.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_volume_launcher_icon.cpp b/tests/test_volume_launcher_icon.cpp index c45e1f3b8..eb1bdc754 100644 --- a/tests/test_volume_launcher_icon.cpp +++ b/tests/test_volume_launcher_icon.cpp @@ -533,4 +533,13 @@ TEST_F(TestVolumeLauncherIcon, Unstick) EXPECT_TRUE(forgot); } +TEST_F(TestVolumeLauncherIcon, Activate) +{ + CreateIcon(); + + unsigned long long time = g_random_int(); + EXPECT_CALL(*volume_, MountAndOpenInFileManager(time)); + icon_->Activate(ActionArg(ActionArg::Source::LAUNCHER, 0, time)); +} + } |
