| 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/gdata/drive_sync_client.h" | 5 #include "chrome/browser/chromeos/gdata/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/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/scoped_temp_dir.h" | 16 #include "base/scoped_temp_dir.h" |
| 17 #include "base/test/test_timeouts.h" | 17 #include "base/test/test_timeouts.h" |
| 18 #include "base/threading/sequenced_worker_pool.h" | 18 #include "base/threading/sequenced_worker_pool.h" |
| 19 #include "chrome/browser/chromeos/gdata/drive.pb.h" | |
| 20 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" | 19 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" |
| 21 #include "chrome/browser/chromeos/gdata/drive_test_util.h" | 20 #include "chrome/browser/chromeos/gdata/drive_test_util.h" |
| 22 #include "chrome/browser/chromeos/gdata/mock_drive_file_system.h" | 21 #include "chrome/browser/chromeos/gdata/mock_drive_file_system.h" |
| 22 #include "chrome/browser/google_apis/drive.pb.h" |
| 23 #include "chrome/browser/prefs/pref_service.h" | 23 #include "chrome/browser/prefs/pref_service.h" |
| 24 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
| 25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
| 26 #include "chrome/test/base/testing_profile.h" | 26 #include "chrome/test/base/testing_profile.h" |
| 27 #include "content/public/test/test_browser_thread.h" | 27 #include "content/public/test/test_browser_thread.h" |
| 28 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 30 | 30 |
| 31 using ::testing::AnyNumber; | 31 using ::testing::AnyNumber; |
| 32 using ::testing::DoAll; | 32 using ::testing::DoAll; |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 ASSERT_EQ(1U, resource_ids.size()); | 546 ASSERT_EQ(1U, resource_ids.size()); |
| 547 EXPECT_EQ("resource_id_fetched", resource_ids[0]); | 547 EXPECT_EQ("resource_id_fetched", resource_ids[0]); |
| 548 // resource_id_dirty is not collected in the queue. | 548 // resource_id_dirty is not collected in the queue. |
| 549 | 549 |
| 550 // Check the contents of the queue for uploading. | 550 // Check the contents of the queue for uploading. |
| 551 resource_ids = GetResourceIdsToBeUploaded(); | 551 resource_ids = GetResourceIdsToBeUploaded(); |
| 552 ASSERT_TRUE(resource_ids.empty()); | 552 ASSERT_TRUE(resource_ids.empty()); |
| 553 } | 553 } |
| 554 | 554 |
| 555 } // namespace gdata | 555 } // namespace gdata |
| OLD | NEW |