-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge branch 'yann/feature/videokit/add-videokit-architecture' into…
… develop
- Loading branch information
Showing
6 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Leka - LekaOS | ||
# Copyright 2022 APF France handicap | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
add_library(VideoKit STATIC) | ||
|
||
target_include_directories(VideoKit | ||
PUBLIC | ||
include | ||
) | ||
|
||
target_sources(VideoKit | ||
PRIVATE | ||
source/VideoKit.cpp | ||
) | ||
|
||
target_link_libraries(VideoKit | ||
CoreLL | ||
CoreSTM32Hal | ||
CoreVideo | ||
) | ||
|
||
if (${CMAKE_PROJECT_NAME} STREQUAL "LekaOSUnitTests") | ||
|
||
leka_unit_tests_sources( | ||
tests/VideoKit_test.cpp | ||
) | ||
|
||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Leka - LekaOS | ||
// Copyright 2022 APF France handicap | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
namespace leka { | ||
|
||
class VideoKit | ||
{ | ||
public: | ||
explicit VideoKit() = default; | ||
|
||
void initializeScreen() {}; | ||
|
||
void displayImage(const char *path) {}; | ||
|
||
void playVideo(const char *path) {}; | ||
void stopVideo() {}; | ||
}; | ||
|
||
} // namespace leka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Leka - LekaOS | ||
// Copyright 2022 APF France handicap | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#include "VideoKit.h" | ||
|
||
using namespace leka; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Leka - LekaOS | ||
// Copyright 2022 APF France handicap | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#include "VideoKit.h" | ||
|
||
#include "gtest/gtest.h" | ||
|
||
using namespace leka; | ||
|
||
class VideoKitTest : public ::testing::Test | ||
{ | ||
protected: | ||
VideoKitTest() {} | ||
|
||
// void SetUp() override {} | ||
// void TearDown() override {} | ||
|
||
VideoKit video_kit; | ||
}; | ||
|
||
TEST_F(VideoKitTest, initialization) | ||
{ | ||
EXPECT_NE(&video_kit, nullptr); | ||
} | ||
|
||
TEST_F(VideoKitTest, initializeScreen) | ||
{ | ||
video_kit.initializeScreen(); | ||
} | ||
|
||
TEST_F(VideoKitTest, displayImage) | ||
{ | ||
video_kit.displayImage("some_image"); | ||
} | ||
|
||
TEST_F(VideoKitTest, playVideo) | ||
{ | ||
video_kit.playVideo("some_video"); | ||
} | ||
|
||
TEST_F(VideoKitTest, stopVideo) | ||
{ | ||
video_kit.stopVideo(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters