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

Side by Side Diff: chrome/browser/chromeos/arc/downloads_watcher/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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698