Move tests to the namespace of the code under test (#3244)

Rationale: this convention avoids forcing closely-related code to be far
apart in the namespace hierarchy, and vice versa. By the same token, it
makes the namespace hierarchy more consistent with the directory
hierarchy.
This commit is contained in:
Geoff Romer
2023-09-18 22:05:14 +00:00
committed by GitHub
parent d6f689ba07
commit e3d3122f1d
28 changed files with 155 additions and 162 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
#include "llvm/Support/VirtualFileSystem.h"
#include "toolchain/diagnostics/diagnostic_emitter.h"
namespace Carbon::Testing {
namespace Carbon {
namespace {
static constexpr llvm::StringLiteral TestFileName = "test.carbon";
@@ -66,4 +66,4 @@ TEST(SourceBufferTest, EmptyFile) {
}
} // namespace
} // namespace Carbon::Testing
} // namespace Carbon