Skip to content

Commit b6daf3d

Browse files
authored
[embedder] Consistent naming for GL/Metal tests (flutter#38141)
While I've sent a patch to mark the shell/platform/embedder/tests and fixtures directories as test exempt (since they are tests), by convention, tests should end in _unittests.* for C++ tests, and _test.* for Dart tests. This renames for consistency with other tests such as embedder_a11y_unittests.cc. Uncovered by flutter/engine#38133 Related: flutter/cocoon#2340 Issue: flutter#116381
1 parent 748b3bc commit b6daf3d

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

shell/platform/embedder/BUILD.gn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,11 @@ if (enable_unittests) {
317317
deps = [ ":embedder_unittests_library" ]
318318

319319
if (test_enable_gl) {
320-
sources += [ "tests/embedder_unittests_gl.cc" ]
320+
sources += [ "tests/embedder_gl_unittests.cc" ]
321321
}
322322

323323
if (test_enable_metal) {
324-
sources += [ "tests/embedder_unittests_metal.mm" ]
324+
sources += [ "tests/embedder_metal_unittests.mm" ]
325325
}
326326
}
327327

shell/platform/embedder/tests/embedder_unittests_gl.cc renamed to shell/platform/embedder/tests/embedder_gl_unittests.cc

File renamed without changes.

shell/platform/embedder/tests/embedder_unittests_metal.mm renamed to shell/platform/embedder/tests/embedder_metal_unittests.mm

File renamed without changes.

0 commit comments

Comments
 (0)