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