Skip to content

Commit c31ed09

Browse files
[CodeDriven] PR#1 Rename Actions Cluster (project-chip#43222)
* Rename actions-server.cpp to ActionsCluster.cpp * Add header explicitly * Restyled by gn * Why it worked before * Restyled by gn --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 2415614 commit c31ed09

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

File renamed without changes.

src/app/clusters/actions-server/app_config_dependent_sources.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
TARGET_SOURCES(
1717
${APP_TARGET}
1818
PRIVATE
19-
"${CLUSTER_DIR}/actions-server.cpp"
19+
"${CLUSTER_DIR}/actions-server.h"
20+
"${CLUSTER_DIR}/ActionsCluster.cpp"
2021
)

src/app/clusters/actions-server/app_config_dependent_sources.gni

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
app_config_dependent_sources = [ "actions-server.cpp" ]
14+
app_config_dependent_sources = [
15+
"ActionsCluster.cpp",
16+
"actions-server.h",
17+
]

src/app/tests/BUILD.gn

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ source_set("power-cluster-test-srcs") {
9595
}
9696

9797
source_set("actions-cluster-test-srcs") {
98-
sources =
99-
[ "${chip_root}/src/app/clusters/actions-server/actions-server.cpp" ]
98+
sources = [
99+
"${chip_root}/src/app/clusters/actions-server/ActionsCluster.cpp",
100+
"${chip_root}/src/app/clusters/actions-server/actions-server.h",
101+
]
100102

101103
public_deps = [
102104
"${chip_root}/src/app/common:cluster-objects",
@@ -241,7 +243,6 @@ chip_test_suite("tests") {
241243
"TestAclAttribute.cpp",
242244
"TestAclCommand.cpp",
243245
"TestAclEvent.cpp",
244-
"TestActionsCluster.cpp",
245246
"TestAttributeAccessInterfaceCache.cpp",
246247
"TestAttributePathExpandIterator.cpp",
247248
"TestAttributePathParams.cpp",
@@ -321,6 +322,7 @@ chip_test_suite("tests") {
321322

322323
if (chip_device_platform != "android") {
323324
test_sources += [
325+
"TestActionsCluster.cpp",
324326
"TestCertificateTableImpl.cpp",
325327
"TestExtensionFieldSets.cpp",
326328
"TestSceneTable.cpp",

0 commit comments

Comments
 (0)