| 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/drive/drive_uploader.h" | 5 #include "components/drive/drive_uploader.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/browser/drive/dummy_drive_service.h" | 18 #include "components/drive/service/dummy_drive_service.h" |
| 19 #include "google_apis/drive/drive_api_parser.h" | 19 #include "google_apis/drive/drive_api_parser.h" |
| 20 #include "google_apis/drive/test_util.h" | 20 #include "google_apis/drive/test_util.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 using google_apis::CancelCallback; | 23 using google_apis::CancelCallback; |
| 24 using google_apis::FileResource; | 24 using google_apis::FileResource; |
| 25 using google_apis::DriveApiErrorCode; | 25 using google_apis::DriveApiErrorCode; |
| 26 using google_apis::DRIVE_NO_CONNECTION; | 26 using google_apis::DRIVE_NO_CONNECTION; |
| 27 using google_apis::DRIVE_OTHER_ERROR; | 27 using google_apis::DRIVE_OTHER_ERROR; |
| 28 using google_apis::HTTP_CONFLICT; | 28 using google_apis::HTTP_CONFLICT; |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 | 946 |
| 947 EXPECT_EQ(HTTP_NOT_FOUND, results[0].error); | 947 EXPECT_EQ(HTTP_NOT_FOUND, results[0].error); |
| 948 EXPECT_TRUE(results[0].resume_url.is_empty()); | 948 EXPECT_TRUE(results[0].resume_url.is_empty()); |
| 949 EXPECT_FALSE(results[0].file); | 949 EXPECT_FALSE(results[0].file); |
| 950 | 950 |
| 951 EXPECT_EQ(HTTP_NOT_FOUND, results[1].error); | 951 EXPECT_EQ(HTTP_NOT_FOUND, results[1].error); |
| 952 EXPECT_TRUE(results[1].resume_url.is_empty()); | 952 EXPECT_TRUE(results[1].resume_url.is_empty()); |
| 953 EXPECT_FALSE(results[1].file); | 953 EXPECT_FALSE(results[1].file); |
| 954 } | 954 } |
| 955 } // namespace drive | 955 } // namespace drive |
| OLD | NEW |