OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/test_util.h" | 5 #include "components/drive/service/test_util.h" |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "chrome/browser/drive/drive_api_util.h" | 8 #include "components/drive/drive_api_util.h" |
9 #include "chrome/browser/drive/fake_drive_service.h" | 9 #include "components/drive/service/fake_drive_service.h" |
10 #include "google_apis/drive/drive_api_parser.h" | 10 #include "google_apis/drive/drive_api_parser.h" |
11 #include "google_apis/drive/test_util.h" | 11 #include "google_apis/drive/test_util.h" |
12 | 12 |
13 using google_apis::FileResource; | 13 using google_apis::FileResource; |
14 using google_apis::DRIVE_OTHER_ERROR; | 14 using google_apis::DRIVE_OTHER_ERROR; |
15 using google_apis::DriveApiErrorCode; | 15 using google_apis::DriveApiErrorCode; |
16 using google_apis::HTTP_CREATED; | 16 using google_apis::HTTP_CREATED; |
17 | 17 |
18 namespace drive { | 18 namespace drive { |
19 namespace test_util { | 19 namespace test_util { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); | 184 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); |
185 base::RunLoop().RunUntilIdle(); | 185 base::RunLoop().RunUntilIdle(); |
186 if (error != HTTP_CREATED) | 186 if (error != HTTP_CREATED) |
187 return false; | 187 return false; |
188 | 188 |
189 return true; | 189 return true; |
190 } | 190 } |
191 | 191 |
192 } // namespace test_util | 192 } // namespace test_util |
193 } // namespace drive | 193 } // namespace drive |
OLD | NEW |