| 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/file_system_provider/request_manager.h" |
| 6 |
| 5 #include <map> | 7 #include <map> |
| 6 #include <string> | 8 #include <string> |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 10 #include "base/callback.h" | 12 #include "base/callback.h" |
| 11 #include "base/files/file.h" | 13 #include "base/files/file.h" |
| 12 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
| 15 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 16 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
| 17 #include "chrome/browser/chromeos/file_system_provider/notification_manager_inte
rface.h" | 19 #include "chrome/browser/chromeos/file_system_provider/notification_manager_inte
rface.h" |
| 18 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" | |
| 19 #include "chrome/browser/chromeos/file_system_provider/request_value.h" | 20 #include "chrome/browser/chromeos/file_system_provider/request_value.h" |
| 20 #include "content/public/test/test_browser_thread_bundle.h" | 21 #include "content/public/test/test_browser_thread_bundle.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 23 |
| 23 namespace chromeos { | 24 namespace chromeos { |
| 24 namespace file_system_provider { | 25 namespace file_system_provider { |
| 25 namespace { | 26 namespace { |
| 26 | 27 |
| 27 // Fake implementation for the notification manager. Simulates user action on | 28 // Fake implementation for the notification manager. Simulates user action on |
| 28 // a notification. | 29 // a notification. |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 | 777 |
| 777 // Wait until the request is timeouted again. | 778 // Wait until the request is timeouted again. |
| 778 base::RunLoop().RunUntilIdle(); | 779 base::RunLoop().RunUntilIdle(); |
| 779 EXPECT_EQ(1u, notification_manager_->size()); | 780 EXPECT_EQ(1u, notification_manager_->size()); |
| 780 | 781 |
| 781 request_manager_->RemoveObserver(&observer); | 782 request_manager_->RemoveObserver(&observer); |
| 782 } | 783 } |
| 783 | 784 |
| 784 } // namespace file_system_provider | 785 } // namespace file_system_provider |
| 785 } // namespace chromeos | 786 } // namespace chromeos |
| OLD | NEW |