OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/file_system_provider/throttled_file_system.h" | 5 #include "chrome/browser/chromeos/file_system_provider/throttled_file_system.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
9 #include "base/files/file.h" | 11 #include "base/files/file.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
12 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h" | 14 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h" |
13 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" | 15 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" |
14 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 16 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
15 #include "chrome/common/extensions/api/file_system_provider_capabilities/file_sy
stem_provider_capabilities_handler.h" | 17 #include "chrome/common/extensions/api/file_system_provider_capabilities/file_sy
stem_provider_capabilities_handler.h" |
16 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 152 |
151 base::RunLoop().RunUntilIdle(); | 153 base::RunLoop().RunUntilIdle(); |
152 | 154 |
153 ASSERT_EQ(1u, first_open_log.size()); | 155 ASSERT_EQ(1u, first_open_log.size()); |
154 EXPECT_EQ(base::File::FILE_OK, first_open_log[0].second); | 156 EXPECT_EQ(base::File::FILE_OK, first_open_log[0].second); |
155 EXPECT_EQ(0u, second_open_log.size()); | 157 EXPECT_EQ(0u, second_open_log.size()); |
156 } | 158 } |
157 | 159 |
158 } // namespace file_system_provider | 160 } // namespace file_system_provider |
159 } // namespace chromeos | 161 } // namespace chromeos |
OLD | NEW |