| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/arc/arc_downloads_watcher_service.h" | 5 #include "chrome/browser/chromeos/arc/downloads_watcher/arc_downloads_watcher_se
rvice.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 arc { | 10 namespace arc { |
| 11 | 11 |
| 12 TEST(ArcDownloadsWatcherServiceTest, HasAndroidSupportedMediaExtension) { | 12 TEST(ArcDownloadsWatcherServiceTest, HasAndroidSupportedMediaExtension) { |
| 13 EXPECT_TRUE(HasAndroidSupportedMediaExtension( | 13 EXPECT_TRUE(HasAndroidSupportedMediaExtension( |
| 14 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.3g2")))); | 14 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.3g2")))); |
| 15 EXPECT_TRUE(HasAndroidSupportedMediaExtension( | 15 EXPECT_TRUE(HasAndroidSupportedMediaExtension( |
| (...skipping 12 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 EXPECT_FALSE(HasAndroidSupportedMediaExtension( | 29 EXPECT_FALSE(HasAndroidSupportedMediaExtension( |
| 30 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.txt")))); | 30 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.txt")))); |
| 31 EXPECT_FALSE(HasAndroidSupportedMediaExtension( | 31 EXPECT_FALSE(HasAndroidSupportedMediaExtension( |
| 32 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.jpg.exe")))); | 32 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.jpg.exe")))); |
| 33 EXPECT_FALSE(HasAndroidSupportedMediaExtension( | 33 EXPECT_FALSE(HasAndroidSupportedMediaExtension( |
| 34 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten")))); | 34 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten")))); |
| 35 } | 35 } |
| 36 | 36 |
| 37 } // namespace arc | 37 } // namespace arc |
| OLD | NEW |