| 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/chromeos/drive/fileapi/fileapi_worker.h" | 5 #include "chrome/browser/chromeos/drive/fileapi/fileapi_worker.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/chromeos/drive/dummy_file_system.h" | 11 #include "chrome/browser/chromeos/drive/dummy_file_system.h" |
| 12 #include "content/public/test/test_browser_thread_bundle.h" | 12 #include "content/public/test/test_browser_thread_bundle.h" |
| 13 #include "content/public/test/test_utils.h" | 13 #include "content/public/test/test_utils.h" |
| 14 #include "google_apis/drive/test_util.h" | 14 #include "google_apis/drive/test_util.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 namespace drive { | 17 namespace drive { |
| 18 namespace fileapi_internal { | 18 namespace fileapi_internal { |
| 19 namespace { | 19 namespace { |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 OpenFile(kDummyPath, | 257 OpenFile(kDummyPath, |
| 258 base::File::FLAG_OPEN | base::File::FLAG_READ, | 258 base::File::FLAG_OPEN | base::File::FLAG_READ, |
| 259 base::Bind(&VerifyRead, kInitialData), | 259 base::Bind(&VerifyRead, kInitialData), |
| 260 &file_system); | 260 &file_system); |
| 261 content::RunAllBlockingPoolTasksUntilIdle(); | 261 content::RunAllBlockingPoolTasksUntilIdle(); |
| 262 EXPECT_TRUE(file_system.closed()); | 262 EXPECT_TRUE(file_system.closed()); |
| 263 } | 263 } |
| 264 | 264 |
| 265 } // namespace fileapi_internal | 265 } // namespace fileapi_internal |
| 266 } // namespace drive | 266 } // namespace drive |
| OLD | NEW |