blob: 116fba4408f4660913bc9bac36734e136694877a [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include <string>
#include "flutter/shell/platform/windows/client_wrapper/include/flutter/dart_project.h"
#include "gtest/gtest.h"
namespace flutter {
class DartProjectTest : public ::testing::Test {
protected:
// Wrapper for accessing private icu_data_path.
std::wstring GetProjectIcuDataPath(const DartProject& project) {
return project.icu_data_path();
}
// Wrapper for accessing private assets_path.
std::wstring GetProjectAssetsPath(const DartProject& project) {
return project.assets_path();
}
// Wrapper for accessing private aot_library_path_.
std::wstring GetProjectAotLibraryPath(const DartProject& project) {
return project.aot_library_path();
}
};
TEST_F(DartProjectTest, StandardProjectFormat) {
DartProject project(L"test");
EXPECT_EQ(GetProjectIcuDataPath(project), L"test\\icudtl.dat");
EXPECT_EQ(GetProjectAssetsPath(project), L"test\\flutter_assets");
EXPECT_EQ(GetProjectAotLibraryPath(project), L"test\\app.so");
}
} // namespace flutter