file_manager: Move FindPreferredIcon() to drive_app_registry.h
[chromium-blink-merge.git] / chrome / browser / chromeos / extensions / file_manager / mime_util_unittest.cc
blobcfaf4c8609a50ce0c87c1b72d928278d7aa8fb5a
1 // Copyright 2013 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.
5 #include "chrome/browser/chromeos/extensions/file_manager/mime_util.h"
7 #include "base/files/file_path.h"
8 #include "testing/gtest/include/gtest/gtest.h"
10 namespace file_manager {
11 namespace util {
13 TEST(FileManagerMimeUtilTest, GetMimeTypeForPath) {
14 EXPECT_EQ("image/jpeg",
15 GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("foo.jpg")));
16 EXPECT_EQ("image/jpeg",
17 GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("FOO.JPG")));
18 EXPECT_EQ("",
19 GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("foo.zzz")));
22 } // namespace util
23 } // namespace file_manager