Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1720)

Side by Side Diff: chrome/browser/chromeos/file_manager/mime_util_unittest.cc

Issue 23945002: file_manager: Move non-binding code to c/b/chromeos/file_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/extensions/file_manager/mime_util.h" 5 #include "chrome/browser/chromeos/file_manager/mime_util.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace file_manager { 10 namespace file_manager {
11 namespace util { 11 namespace util {
12 12
13 TEST(FileManagerMimeUtilTest, GetMimeTypeForPath) { 13 TEST(FileManagerMimeUtilTest, GetMimeTypeForPath) {
14 EXPECT_EQ("image/jpeg", 14 EXPECT_EQ("image/jpeg",
15 GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("foo.jpg"))); 15 GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("foo.jpg")));
16 EXPECT_EQ("image/jpeg", 16 EXPECT_EQ("image/jpeg",
17 GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("FOO.JPG"))); 17 GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("FOO.JPG")));
18 EXPECT_EQ("", 18 EXPECT_EQ("",
19 GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("foo.zzz"))); 19 GetMimeTypeForPath(base::FilePath::FromUTF8Unsafe("foo.zzz")));
20 } 20 }
21 21
22 } // namespace util 22 } // namespace util
23 } // namespace file_manager 23 } // namespace file_manager
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_manager/mime_util.cc ('k') | chrome/browser/chromeos/file_manager/mounted_disk_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698