Home | History | Annotate | Download | only in tests

Lines Matching refs:interface

51 const stack_config_t interface = {
101 MockMediaInterface interface;
104 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
117 EXPECT_CALL(interface, GetNowPlayingList(_))
145 MockMediaInterface interface;
148 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
153 EXPECT_CALL(interface, GetPlayStatus(_))
187 MockMediaInterface interface;
190 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
195 EXPECT_CALL(interface, GetPlayStatus(_))
229 MockMediaInterface interface;
232 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
244 EXPECT_CALL(interface, GetNowPlayingList(_))
271 MockMediaInterface interface;
274 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
278 EXPECT_CALL(interface, GetPlayStatus(_))
297 MockMediaInterface interface;
300 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
312 EXPECT_CALL(interface, GetSongInfo(_)).WillRepeatedly(InvokeCb<0>(info));
342 MockMediaInterface interface;
351 device.RegisterInterfaces(&interface, &a2dp_interface, nullptr);
355 EXPECT_CALL(interface, GetSongInfo(_)).WillRepeatedly(InvokeCb<0>(info));
366 MockMediaInterface interface;
369 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
375 EXPECT_CALL(interface, GetMediaPlayerList(_))
390 MockMediaInterface interface;
393 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
400 EXPECT_CALL(interface, GetFolderItems(_, "", _))
415 MockMediaInterface interface;
418 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
425 EXPECT_CALL(interface, GetNowPlayingList(_))
439 MockMediaInterface interface;
442 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
447 EXPECT_CALL(interface, GetMediaPlayerList(_))
463 MockMediaInterface interface;
466 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
479 EXPECT_CALL(interface, GetNowPlayingList(_))
494 MockMediaInterface interface;
497 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
503 EXPECT_CALL(interface, GetFolderItems(_, "", _))
524 MockMediaInterface interface;
531 device.RegisterInterfaces(&interface, &a2dp_interface, nullptr);
540 EXPECT_CALL(interface, GetFolderItems(_, "", _))
551 MockMediaInterface interface;
554 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
561 EXPECT_CALL(interface, GetFolderItems(_, "", _))
572 EXPECT_CALL(interface, GetFolderItems(_, "test_id1", _))
577 EXPECT_CALL(interface, GetFolderItems(_, "test_id3", _))
646 MockMediaInterface interface;
649 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
662 EXPECT_CALL(interface, GetNowPlayingList(_))
688 MockMediaInterface interface;
695 device.RegisterInterfaces(&interface, &a2dp_interface, nullptr);
700 EXPECT_CALL(interface, GetNowPlayingList(_))
711 MockMediaInterface interface;
714 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
728 MockMediaInterface interface;
732 test_device->RegisterInterfaces(&interface, &a2dp_interface, &vol_interface);
766 MockMediaInterface interface;
770 test_device->RegisterInterfaces(&interface, &a2dp_interface, &vol_interface);
806 MockMediaInterface interface;
810 test_device->RegisterInterfaces(&interface, &a2dp_interface, &vol_interface);
825 MockMediaInterface interface;
829 test_device->RegisterInterfaces(&interface, &a2dp_interface, &vol_interface);
843 EXPECT_CALL(interface, GetPlayStatus(_))
847 EXPECT_CALL(interface, SendKeyEvent(0x44, KeyState::PUSHED)).Times(1);
856 interface;
860 test_device->RegisterInterfaces(&interface, &a2dp_interface, &vol_interface);
874 EXPECT_CALL(interface, SetActiveDevice(test_device->GetAddress())).Times(1);
878 EXPECT_CALL(interface, GetPlayStatus(_))
881 EXPECT_CALL(interface, SendKeyEvent(0x44, KeyState::PUSHED)).Times(0);
890 MockMediaInterface interface;
894 test_device->RegisterInterfaces(&interface, &a2dp_interface, &vol_interface);
908 EXPECT_CALL(interface, GetPlayStatus(_)).Times(0);
910 EXPECT_CALL(interface, SendKeyEvent(0x44, KeyState::RELEASED)).Times(1);
919 MockMediaInterface interface;
923 test_device->RegisterInterfaces(&interface, &a2dp_interface, &vol_interface);
937 EXPECT_CALL(interface, GetPlayStatus(_)).Times(0);
939 // Expect that the key event wont be sent to the media interface
940 EXPECT_CALL(interface, SendKeyEvent(0x44, KeyState::RELEASED)).Times(0);
949 MockMediaInterface interface;
952 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
997 MockMediaInterface interface;
1000 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr);
1013 EXPECT_CALL(interface, GetNowPlayingList(_))
1038 return &bluetooth::avrcp::interface;