~aleteoryx/muditaos

ref: c69fde01d4d07cadb195c7febc32be8a875bc4de muditaos/module-apps/application-music-player/tests/MockSongsRepository.hpp -rw-r--r-- 999 bytes
c69fde01 — Maciej Gibowicz [EGD-6630] Integration file indexer with music player 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
25
26
27
28
// 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,
                    getMusicFilesList,
                    (std::uint32_t offset, std::uint32_t limit, const OnGetMusicFilesListCallback &callback),
                    (override));
        MOCK_METHOD(std::size_t, getFileIndex, (const std::string &filePath), (const override));
        MOCK_METHOD(std::string, getNextFilePath, (const std::string &filePath), (const override));
        MOCK_METHOD(std::string, getPreviousFilePath, (const std::string &filePath), (const override));
    };
}; // namespace testing::app::music_player