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_scheduler.h" | 5 #include "chrome/browser/chromeos/drive/drive_scheduler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/prefs/pref_service.h" |
10 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
11 #include "chrome/browser/chromeos/drive/drive_test_util.h" | 12 #include "chrome/browser/chromeos/drive/drive_test_util.h" |
12 #include "chrome/browser/google_apis/drive_api_parser.h" | 13 #include "chrome/browser/google_apis/drive_api_parser.h" |
13 #include "chrome/browser/google_apis/fake_drive_service.h" | 14 #include "chrome/browser/google_apis/fake_drive_service.h" |
14 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 15 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
15 #include "chrome/browser/prefs/pref_service.h" | |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
18 #include "content/public/test/test_browser_thread.h" | 18 #include "content/public/test/test_browser_thread.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 using ::testing::AnyNumber; | 22 using ::testing::AnyNumber; |
23 using ::testing::DoAll; | 23 using ::testing::DoAll; |
24 using ::testing::Eq; | 24 using ::testing::Eq; |
25 using ::testing::Return; | 25 using ::testing::Return; |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 &google_apis::test_util::CopyResultsFromGetResourceEntryCallback, | 310 &google_apis::test_util::CopyResultsFromGetResourceEntryCallback, |
311 &error, | 311 &error, |
312 &entry)); | 312 &entry)); |
313 google_apis::test_util::RunBlockingPoolTask(); | 313 google_apis::test_util::RunBlockingPoolTask(); |
314 | 314 |
315 ASSERT_EQ(google_apis::HTTP_CREATED, error); | 315 ASSERT_EQ(google_apis::HTTP_CREATED, error); |
316 ASSERT_TRUE(entry); | 316 ASSERT_TRUE(entry); |
317 } | 317 } |
318 | 318 |
319 } // namespace drive | 319 } // namespace drive |
OLD | NEW |