• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "gn/frameworks_utils.h"
6 
7 #include "util/test/test.h"
8 
TEST(FrameworksUtils,GetFrameworkName)9 TEST(FrameworksUtils, GetFrameworkName) {
10   const std::string kFramework = "Foundation.framework";
11   const std::string kFrameworkNoExtension = "Foundation";
12   const std::string kFrameworkPath = "Foo/Foo.framework";
13 
14   EXPECT_EQ("Foundation", GetFrameworkName(kFramework));
15   EXPECT_EQ("", GetFrameworkName(kFrameworkNoExtension));
16   EXPECT_EQ("", GetFrameworkName(kFrameworkPath));
17 }
18