diff options
Diffstat (limited to 'base/mac_util_unittest.cc')
-rw-r--r-- | base/mac_util_unittest.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/base/mac_util_unittest.cc b/base/mac_util_unittest.cc new file mode 100644 index 0000000..03a90e9 --- /dev/null +++ b/base/mac_util_unittest.cc @@ -0,0 +1,20 @@ +// Copyright (c) 2008 The Chromium 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 "base/mac_util.h" + +#include <ApplicationServices/ApplicationServices.h> + +#include "testing/gtest/include/gtest/gtest.h" +#include "testing/platform_test.h" + +typedef PlatformTest MacUtilTest; + +TEST_F(MacUtilTest, TestFSRef) { + FSRef ref; + std::string path("/System/Library"); + + ASSERT_TRUE(mac_util::FSRefFromPath(path, &ref)); + EXPECT_EQ(path, mac_util::PathFromFSRef(ref)); +} |