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