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

Side by Side Diff: extensions/browser/api/file_handlers/app_file_handler_util_unittest.cc

Issue 2685453002: Move file_handlers API from //chrome to //extensions (Closed)
Patch Set: rebase Created 3 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/extensions/api/file_handlers/app_file_handler_util.h" 5 #include "extensions/browser/api/file_handlers/app_file_handler_util.h"
6 6
7 #include "extensions/browser/entry_info.h" 7 #include "extensions/browser/entry_info.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 namespace app_file_handler_util { 11 namespace app_file_handler_util {
12 namespace { 12 namespace {
13 13
14 FileHandlerInfo CreateHandlerInfoFromExtension(const std::string& extension) { 14 FileHandlerInfo CreateHandlerInfoFromExtension(const std::string& extension) {
15 FileHandlerInfo handler_info; 15 FileHandlerInfo handler_info;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 EXPECT_FALSE(FileHandlerCanHandleEntry( 55 EXPECT_FALSE(FileHandlerCanHandleEntry(
56 CreateHandlerInfoFromIncludeDirectories(false), 56 CreateHandlerInfoFromIncludeDirectories(false),
57 EntryInfo(base::FilePath::FromUTF8Unsafe("directory"), "", true))); 57 EntryInfo(base::FilePath::FromUTF8Unsafe("directory"), "", true)));
58 EXPECT_TRUE(FileHandlerCanHandleEntry( 58 EXPECT_TRUE(FileHandlerCanHandleEntry(
59 CreateHandlerInfoFromIncludeDirectories(true), 59 CreateHandlerInfoFromIncludeDirectories(true),
60 EntryInfo(base::FilePath::FromUTF8Unsafe("directory"), "", true))); 60 EntryInfo(base::FilePath::FromUTF8Unsafe("directory"), "", true)));
61 } 61 }
62 62
63 } // namespace app_file_handler_util 63 } // namespace app_file_handler_util
64 } // namespace extensions 64 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/file_handlers/app_file_handler_util.cc ('k') | extensions/browser/api/file_handlers/directory_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698