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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/platform_file.h" | |
14 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
15 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" | 14 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" |
16 #include "chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reade
r.h" | 15 #include "chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reade
r.h" |
17 #include "chrome/browser/chromeos/file_system_provider/service.h" | 16 #include "chrome/browser/chromeos/file_system_provider/service.h" |
18 #include "chrome/browser/chromeos/file_system_provider/service_factory.h" | 17 #include "chrome/browser/chromeos/file_system_provider/service_factory.h" |
19 #include "chrome/test/base/testing_browser_process.h" | 18 #include "chrome/test/base/testing_browser_process.h" |
20 #include "chrome/test/base/testing_profile.h" | 19 #include "chrome/test/base/testing_profile.h" |
21 #include "chrome/test/base/testing_profile_manager.h" | 20 #include "chrome/test/base/testing_profile_manager.h" |
22 #include "content/public/test/test_browser_thread_bundle.h" | 21 #include "content/public/test/test_browser_thread_bundle.h" |
23 #include "content/public/test/test_file_system_context.h" | 22 #include "content/public/test/test_file_system_context.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 base::Bind(&EventLogger::OnGetLength, logger.GetWeakPtr())); | 285 base::Bind(&EventLogger::OnGetLength, logger.GetWeakPtr())); |
287 EXPECT_EQ(net::ERR_IO_PENDING, result); | 286 EXPECT_EQ(net::ERR_IO_PENDING, result); |
288 base::RunLoop().RunUntilIdle(); | 287 base::RunLoop().RunUntilIdle(); |
289 | 288 |
290 ASSERT_EQ(1u, logger.results().size()); | 289 ASSERT_EQ(1u, logger.results().size()); |
291 EXPECT_EQ(net::ERR_FILE_NOT_FOUND, logger.results()[0]); | 290 EXPECT_EQ(net::ERR_FILE_NOT_FOUND, logger.results()[0]); |
292 } | 291 } |
293 | 292 |
294 } // namespace file_system_provider | 293 } // namespace file_system_provider |
295 } // namespace chromeos | 294 } // namespace chromeos |
OLD | NEW |