| 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 // TODO(mtomasz): Move these test cases to operations/unmount_unittest.cc. | 5 // TODO(mtomasz): Move these test cases to operations/unmount_unittest.cc. |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/file_system_provider/provided_file_system.h" |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/files/file.h" | 12 #include "base/files/file.h" |
| 11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 13 #include "base/values.h" | 15 #include "base/values.h" |
| 14 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" | 16 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" |
| 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system.h" | |
| 16 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 17 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
| 17 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 18 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
| 18 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" | 19 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" |
| 19 #include "chrome/common/extensions/api/file_system_provider.h" | 20 #include "chrome/common/extensions/api/file_system_provider.h" |
| 20 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" |
| 21 #include "content/public/test/test_browser_thread_bundle.h" | 22 #include "content/public/test/test_browser_thread_bundle.h" |
| 22 #include "extensions/browser/event_router.h" | 23 #include "extensions/browser/event_router.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 25 |
| 25 namespace chromeos { | 26 namespace chromeos { |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 request_id, base::File::FILE_ERROR_NOT_FOUND); | 171 request_id, base::File::FILE_ERROR_NOT_FOUND); |
| 171 EXPECT_TRUE(reply_result); | 172 EXPECT_TRUE(reply_result); |
| 172 | 173 |
| 173 // Callback should be called. Verify the error code. | 174 // Callback should be called. Verify the error code. |
| 174 ASSERT_TRUE(logger.error()); | 175 ASSERT_TRUE(logger.error()); |
| 175 EXPECT_EQ(base::File::FILE_ERROR_NOT_FOUND, *logger.error()); | 176 EXPECT_EQ(base::File::FILE_ERROR_NOT_FOUND, *logger.error()); |
| 176 } | 177 } |
| 177 | 178 |
| 178 } // namespace file_system_provider | 179 } // namespace file_system_provider |
| 179 } // namespace chromeos | 180 } // namespace chromeos |
| OLD | NEW |