yaze
0.2.0
Link to the Past ROM Editor
Loading...
Searching...
No Matches
message_test.cc
Go to the documentation of this file.
1
#include <gtest/gtest.h>
2
3
#include "
app/editor/message/message_data.h
"
4
#include "
app/editor/message/message_editor.h
"
5
#include "
test/core/testing.h
"
6
7
namespace
yaze
{
8
namespace
test {
9
namespace
zelda3 {
10
11
class
MessageTest
:
public
::testing::Test,
public
app::SharedRom
{
12
protected
:
13
void
SetUp
()
override
{
14
#if defined(__linux__)
15
GTEST_SKIP();
16
#endif
17
}
18
void
TearDown
()
override
{}
19
20
app::editor::MessageEditor
message_editor_
;
21
std::vector<app::editor::DictionaryEntry>
dictionary_
;
22
};
23
24
TEST_F
(
MessageTest
, LoadMessagesFromRomOk) {
25
EXPECT_OK
(rom()->LoadFromFile(
"zelda3.sfc"
));
26
EXPECT_OK
(message_editor_.Initialize());
27
}
28
43
TEST_F
(
MessageTest
, VerifySingleMessageFromRomOk) {
44
// TODO - Implement this test
45
}
46
47
}
// namespace zelda3
48
}
// namespace test
49
}
// namespace yaze
yaze::app::SharedRom
A class to hold a shared pointer to a Rom object.
Definition
rom.h:576
yaze::app::editor::MessageEditor
Definition
message_editor.h:39
yaze::test::zelda3::MessageTest
Definition
message_test.cc:11
yaze::test::zelda3::MessageTest::SetUp
void SetUp() override
Definition
message_test.cc:13
yaze::test::zelda3::MessageTest::dictionary_
std::vector< app::editor::DictionaryEntry > dictionary_
Definition
message_test.cc:21
yaze::test::zelda3::MessageTest::message_editor_
app::editor::MessageEditor message_editor_
Definition
message_test.cc:20
yaze::test::zelda3::MessageTest::TearDown
void TearDown() override
Definition
message_test.cc:18
message_data.h
message_editor.h
yaze::test::zelda3::TEST_F
TEST_F(DungeonRoomTest, SingleRoomLoadOk)
Definition
dungeon_room_test.cc:28
yaze
Definition
common.cc:22
testing.h
EXPECT_OK
#define EXPECT_OK(expr)
Definition
testing.h:10
src
test
zelda3
message_test.cc
Generated by
1.12.0