Skip to content

Commit e083ca7

Browse files
JacobSzwejbkafacebook-github-bot
authored andcommitted
fix up runtime/platform/test
Summary: forgot to update this earlier in the stack. Just renaming and aligning with coding style guide Reviewed By: mergennachin Differential Revision: D47298828 fbshipit-source-id: e03b8108e280c9f35e91d97a4245fdce5aac9395
1 parent c81962f commit e083ca7

File tree

8 files changed

+24
-29
lines changed

8 files changed

+24
-29
lines changed

core/test/targets.bzl

Lines changed: 0 additions & 22 deletions
This file was deleted.

runtime/platform/test/ExecutorPalOverrideTest.cpp renamed to runtime/platform/test/executor_pal_override_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <executorch/runtime/platform/log.h>
22
#include <executorch/runtime/platform/runtime.h>
3-
#include <executorch/runtime/platform/test/StubPlatform.h>
3+
#include <executorch/runtime/platform/test/stub_platform.h>
44
#include <executorch/test/utils/DeathTest.h>
55

66
#include <gtest/gtest.h>
File renamed without changes.

runtime/platform/test/StubPlatform.cpp renamed to runtime/platform/test/stub_platform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <executorch/runtime/platform/test/StubPlatform.h>
1+
#include <executorch/runtime/platform/test/stub_platform.h>
22

33
#include <chrono>
44
#include <cinttypes>

runtime/platform/test/targets.bzl

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@ def define_common_targets():
1010
runtime.cxx_test(
1111
name = "platform_test",
1212
srcs = [
13-
"ExecutorPalTest.cpp",
13+
"executor_pal_test.cpp",
1414
],
1515
deps = [
1616
"//executorch/runtime/core:core",
17+
"//executorch/runtime/platform:platform",
1718
],
1819
)
1920

2021
runtime.cxx_test(
2122
name = "platform_death_test",
2223
srcs = [
23-
"ExecutorPalDeathTest.cpp",
24+
"executor_pal_death_test.cpp",
2425
],
2526
deps = [
2627
"//executorch/runtime/core:core",
28+
"//executorch/runtime/platform:platform",
2729
],
2830
)
2931

@@ -35,10 +37,10 @@ def define_common_targets():
3537
runtime.cxx_library(
3638
name = "stub_platform",
3739
srcs = [
38-
"StubPlatform.cpp",
40+
"stub_platform.cpp",
3941
],
4042
exported_headers = [
41-
"StubPlatform.h",
43+
"stub_platform.h",
4244
],
4345
deps = [
4446
"//executorch/runtime/platform:compiler",
@@ -51,10 +53,25 @@ def define_common_targets():
5153
runtime.cxx_test(
5254
name = "platform_override_test",
5355
srcs = [
54-
"ExecutorPalOverrideTest.cpp",
56+
"executor_pal_override_test.cpp",
5557
],
5658
deps = [
5759
"//executorch/runtime/core:core",
60+
"//executorch/runtime/platform:platform",
5861
":stub_platform",
5962
],
6063
)
64+
65+
runtime.cxx_test(
66+
name = "logging_test",
67+
srcs = [
68+
"logging_test.cpp",
69+
],
70+
deps = [
71+
"//executorch/runtime/platform:platform",
72+
],
73+
compiler_flags = [
74+
# Turn on debug logging.
75+
"-DET_MIN_LOG_LEVEL=Debug",
76+
],
77+
)

0 commit comments

Comments
 (0)