This source file includes following definitions.
- TEST
#include "chrome/browser/chromeos/file_manager/mime_util.h"
#include "base/files/file_path.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace file_manager {
namespace util {
TEST(FileManagerMimeUtilTest, GetMimeTypeForPath) {
EXPECT_EQ("image/jpeg",
GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("foo.jpg")));
EXPECT_EQ("image/jpeg",
GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("FOO.JPG")));
EXPECT_EQ("",
GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("foo.zzz")));
}
}
}