yaze
0.2.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
overworld_test.cc
Go to the documentation of this file.
1
#include "
app/zelda3/overworld/overworld.h
"
2
3
#include <gmock/gmock.h>
4
#include <gtest/gtest.h>
5
6
#include "
app/rom.h
"
7
#include "
app/zelda3/overworld/overworld.h
"
8
#include "
app/zelda3/overworld/overworld_map.h
"
9
#include "
test/testing.h
"
10
11
namespace
yaze
{
12
namespace
test
{
13
14
class
OverworldTest
:
public
::testing::Test,
public
SharedRom
{
15
protected
:
16
void
SetUp
()
override
{
17
// Skip tests on Linux for automated github builds
18
#if defined(__linux__)
19
GTEST_SKIP();
20
#endif
21
}
22
void
TearDown
()
override
{}
23
24
zelda3::Overworld
overworld_
{*
rom
()};
25
};
26
27
TEST_F
(
OverworldTest
, OverworldLoadNoRomDataError) {
28
Rom
rom;
29
EXPECT_THAT(overworld_.Load(rom),
30
StatusIs(absl::StatusCode::kInvalidArgument));
31
}
32
33
TEST_F
(
OverworldTest
, OverworldLoadRomDataOk) {
44
}
45
46
}
// namespace test
47
}
// namespace yaze
yaze::Rom
The Rom class is used to load, save, and modify Rom data.
Definition
rom.h:59
yaze::SharedRom::rom
auto rom()
Definition
rom.h:383
yaze::SharedRom::SharedRom
SharedRom()=default
yaze::test::OverworldTest
Definition
overworld_test.cc:14
yaze::test::OverworldTest::SetUp
void SetUp() override
Definition
overworld_test.cc:16
yaze::test::OverworldTest::TearDown
void TearDown() override
Definition
overworld_test.cc:22
yaze::test::OverworldTest::overworld_
zelda3::Overworld overworld_
Definition
overworld_test.cc:24
yaze::zelda3::Overworld
Represents the full Overworld data, light and dark world.
Definition
overworld.h:111
yaze::test
Definition
cpu_test.cc:11
yaze::test::TEST_F
TEST_F(CpuTest, AsmParserTokenizerOk)
Definition
cpu_test.cc:44
yaze
Main namespace for the application.
Definition
controller.cc:18
overworld_map.h
rom.h
overworld.h
testing.h
test
zelda3
overworld_test.cc
Generated by
1.13.2