~aleteoryx/muditaos

ref: cf019e3d9604bb7599f3bfb49d4cda47aff9815d muditaos/module-apps/application-music-player/tests/MockSongsRepository.hpp -rw-r--r-- 738 bytes
cf019e3d — Alek Rudnik [EGD-6776] Music Player All Songs Window 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <gtest/gtest.h>
#include <gmock/gmock.h>

#include <models/SongsRepository.hpp>

#include <optional>
#include <string>
#include <vector>

namespace testing::app::music_player
{
    class MockSongsRepository : public ::app::music_player::AbstractSongsRepository
    {
      public:
        MOCK_METHOD(void, scanMusicFilesList, (), (override));
        MOCK_METHOD(std::vector<audio::Tags>, getMusicFilesList, (), (const override));
        MOCK_METHOD(std::size_t, getFileIndex, (const std::string &filePath), (const override));
    };
}; // namespace testing::app::music_player