OLD | NEW |
1 // Copyright (c) 2012 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/fake_drive_service.h" | 5 #include "components/drive/service/fake_drive_service.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/md5.h" | 12 #include "base/md5.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "chrome/browser/drive/test_util.h" | 18 #include "components/drive/service/test_util.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::AboutResource; | 23 using google_apis::AboutResource; |
24 using google_apis::AppList; | 24 using google_apis::AppList; |
25 using google_apis::ChangeList; | 25 using google_apis::ChangeList; |
26 using google_apis::ChangeResource; | 26 using google_apis::ChangeResource; |
27 using google_apis::FileList; | 27 using google_apis::FileList; |
28 using google_apis::FileResource; | 28 using google_apis::FileResource; |
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2168 test_util::CreateCopyResultCallback(&error, &entry)); | 2168 test_util::CreateCopyResultCallback(&error, &entry)); |
2169 base::RunLoop().RunUntilIdle(); | 2169 base::RunLoop().RunUntilIdle(); |
2170 | 2170 |
2171 EXPECT_EQ(DRIVE_NO_CONNECTION, error); | 2171 EXPECT_EQ(DRIVE_NO_CONNECTION, error); |
2172 EXPECT_FALSE(entry); | 2172 EXPECT_FALSE(entry); |
2173 } | 2173 } |
2174 | 2174 |
2175 } // namespace | 2175 } // namespace |
2176 | 2176 |
2177 } // namespace drive | 2177 } // namespace drive |
OLD | NEW |