| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/drive_sync_client.h" | 5 #include "chrome/browser/chromeos/drive/drive_sync_client.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 17 #include "base/prefs/pref_service.h" |
| 17 #include "base/test/test_timeouts.h" | 18 #include "base/test/test_timeouts.h" |
| 18 #include "base/threading/sequenced_worker_pool.h" | 19 #include "base/threading/sequenced_worker_pool.h" |
| 19 #include "chrome/browser/chromeos/drive/drive.pb.h" | 20 #include "chrome/browser/chromeos/drive/drive.pb.h" |
| 20 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" | 21 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" |
| 21 #include "chrome/browser/chromeos/drive/drive_sync_client_observer.h" | 22 #include "chrome/browser/chromeos/drive/drive_sync_client_observer.h" |
| 22 #include "chrome/browser/chromeos/drive/drive_test_util.h" | 23 #include "chrome/browser/chromeos/drive/drive_test_util.h" |
| 23 #include "chrome/browser/chromeos/drive/mock_drive_file_system.h" | 24 #include "chrome/browser/chromeos/drive/mock_drive_file_system.h" |
| 24 #include "chrome/browser/prefs/pref_service.h" | |
| 25 #include "chrome/common/chrome_paths.h" | 25 #include "chrome/common/chrome_paths.h" |
| 26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
| 27 #include "chrome/test/base/testing_profile.h" | 27 #include "chrome/test/base/testing_profile.h" |
| 28 #include "content/public/test/test_browser_thread.h" | 28 #include "content/public/test/test_browser_thread.h" |
| 29 #include "testing/gmock/include/gmock/gmock.h" | 29 #include "testing/gmock/include/gmock/gmock.h" |
| 30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
| 31 | 31 |
| 32 using ::testing::AnyNumber; | 32 using ::testing::AnyNumber; |
| 33 using ::testing::DoAll; | 33 using ::testing::DoAll; |
| 34 using ::testing::Return; | 34 using ::testing::Return; |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 SetExpectationForGetFileByResourceId("resource_id_foo"); | 375 SetExpectationForGetFileByResourceId("resource_id_foo"); |
| 376 SetExpectationForGetFileByResourceId("resource_id_bar"); | 376 SetExpectationForGetFileByResourceId("resource_id_bar"); |
| 377 | 377 |
| 378 google_apis::test_util::RunBlockingPoolTask(); | 378 google_apis::test_util::RunBlockingPoolTask(); |
| 379 | 379 |
| 380 EXPECT_EQ(1, observer_.idle_count()); | 380 EXPECT_EQ(1, observer_.idle_count()); |
| 381 EXPECT_EQ(2, observer_.start_count()); | 381 EXPECT_EQ(2, observer_.start_count()); |
| 382 } | 382 } |
| 383 | 383 |
| 384 } // namespace drive | 384 } // namespace drive |
| OLD | NEW |