Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a518532

Browse files
authored
[Impeller] Put test components in the testing namespace. (#56594)
Minor change for clarity. I went looking for how we used the recording render pass since it was not in the testing namespace.
1 parent b2cb21f commit a518532

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

impeller/entity/contents/test/contents_test_helpers.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
#include "impeller/entity/contents/test/contents_test_helpers.h"
66

7-
namespace impeller {
7+
namespace impeller::testing {
88

99
//
1010

11-
}
11+
} // namespace impeller::testing

impeller/entity/contents/test/contents_test_helpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include "impeller/renderer/command.h"
99

10-
namespace impeller {
10+
namespace impeller::testing {
1111

1212
/// @brief Retrieve the [VertInfo] struct data from the provided [command].
1313
template <typename T>
@@ -44,6 +44,6 @@ typename T::FragInfo* GetFragInfo(const Command& command) {
4444
return reinterpret_cast<typename T::FragInfo*>(data);
4545
}
4646

47-
} // namespace impeller
47+
} // namespace impeller::testing
4848

4949
#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_TEST_CONTENTS_TEST_HELPERS_H_

impeller/entity/contents/test/recording_render_pass.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include <utility>
88

9-
namespace impeller {
9+
namespace impeller::testing {
1010

1111
RecordingRenderPass::RecordingRenderPass(
1212
std::shared_ptr<RenderPass> delegate,
@@ -147,4 +147,4 @@ bool RecordingRenderPass::BindResource(
147147
return true;
148148
}
149149

150-
} // namespace impeller
150+
} // namespace impeller::testing

impeller/entity/contents/test/recording_render_pass.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include "impeller/renderer/render_pass.h"
99

10-
namespace impeller {
10+
namespace impeller::testing {
1111

1212
class RecordingRenderPass : public RenderPass {
1313
public:
@@ -82,6 +82,6 @@ class RecordingRenderPass : public RenderPass {
8282
std::vector<Command> commands_;
8383
};
8484

85-
} // namespace impeller
85+
} // namespace impeller::testing
8686

8787
#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_TEST_RECORDING_RENDER_PASS_H_

0 commit comments

Comments
 (0)