mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ModuleInterfaces] ParseableInterfaceModuleLoader -> ModuleInterfaceLoader
Rename this class to better fit the user-facing name.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include "swift/AST/ASTContext.h"
|
||||
#include "swift/Frontend/Frontend.h"
|
||||
#include "swift/Frontend/ParseableInterfaceModuleLoader.h"
|
||||
#include "swift/Frontend/ModuleInterfaceLoader.h"
|
||||
#include "swift/Frontend/PrintingDiagnosticConsumer.h"
|
||||
#include "swift/Serialization/Validation.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class ParseableInterfaceModuleLoaderTest : public testing::Test {
|
||||
class ModuleInterfaceLoaderTest : public testing::Test {
|
||||
protected:
|
||||
void setupAndLoadParseableModule() {
|
||||
SmallString<256> tempDir;
|
||||
@@ -99,7 +99,7 @@ protected:
|
||||
SearchPathOptions searchPathOpts;
|
||||
auto ctx = ASTContext::get(langOpts, searchPathOpts, sourceMgr, diags);
|
||||
|
||||
auto loader = ParseableInterfaceModuleLoader::create(
|
||||
auto loader = ModuleInterfaceLoader::create(
|
||||
*ctx, cacheDir, prebuiltCacheDir,
|
||||
/*dependencyTracker*/nullptr,
|
||||
ModuleLoadingMode::PreferSerialized);
|
||||
@@ -138,7 +138,7 @@ protected:
|
||||
}
|
||||
};
|
||||
|
||||
TEST_F(ParseableInterfaceModuleLoaderTest, LoadModuleFromBuffer) {
|
||||
TEST_F(ModuleInterfaceLoaderTest, LoadModuleFromBuffer) {
|
||||
setupAndLoadParseableModule();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user