| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |