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

Side by Side Diff: chrome/browser/chromeos/arc/arc_downloads_watcher_service_unittest.cc

Issue 2441563002: arc: Create intermediate directories in c/b/c/arc (Closed)
Patch Set: Re-rebase to ToT Created 4 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/arc/arc_downloads_watcher_service.h"
6
7 #include "base/files/file_path.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 namespace arc {
11
12 TEST(ArcDownloadsWatcherServiceTest, HasAndroidSupportedMediaExtension) {
13 EXPECT_TRUE(HasAndroidSupportedMediaExtension(
14 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.3g2"))));
15 EXPECT_TRUE(HasAndroidSupportedMediaExtension(
16 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.jpg"))));
17 EXPECT_TRUE(HasAndroidSupportedMediaExtension(
18 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.png"))));
19 EXPECT_TRUE(HasAndroidSupportedMediaExtension(
20 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.xmf"))));
21
22 EXPECT_TRUE(HasAndroidSupportedMediaExtension(
23 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.JPEG"))));
24 EXPECT_TRUE(HasAndroidSupportedMediaExtension(
25 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.cute.jpg"))));
26 EXPECT_TRUE(HasAndroidSupportedMediaExtension(
27 base::FilePath(FILE_PATH_LITERAL("/tmp/.kitten.jpg"))));
28
29 EXPECT_FALSE(HasAndroidSupportedMediaExtension(
30 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.txt"))));
31 EXPECT_FALSE(HasAndroidSupportedMediaExtension(
32 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten.jpg.exe"))));
33 EXPECT_FALSE(HasAndroidSupportedMediaExtension(
34 base::FilePath(FILE_PATH_LITERAL("/tmp/kitten"))));
35 }
36
37 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698