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/google_apis/fake_drive_service.h" | 5 #include "chrome/browser/google_apis/fake_drive_service.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "chrome/browser/google_apis/drive_api_parser.h" | 16 #include "chrome/browser/google_apis/drive_api_parser.h" |
17 #include "chrome/browser/google_apis/gdata_wapi_operations.h" | 17 #include "chrome/browser/google_apis/gdata_wapi_operations.h" |
18 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 18 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
19 #include "chrome/browser/google_apis/test_util.h" | 19 #include "chrome/browser/google_apis/test_util.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/test/test_browser_thread.h" | 21 #include "content/public/test/test_browser_thread.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 namespace google_apis { | 24 namespace google_apis { |
25 | 25 |
(...skipping 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2076 test_util::CreateCopyResultCallback(&error, &resource_entry)); | 2076 test_util::CreateCopyResultCallback(&error, &resource_entry)); |
2077 message_loop_.RunUntilIdle(); | 2077 message_loop_.RunUntilIdle(); |
2078 | 2078 |
2079 EXPECT_EQ(GDATA_NO_CONNECTION, error); | 2079 EXPECT_EQ(GDATA_NO_CONNECTION, error); |
2080 EXPECT_FALSE(resource_entry); | 2080 EXPECT_FALSE(resource_entry); |
2081 } | 2081 } |
2082 | 2082 |
2083 } // namespace | 2083 } // namespace |
2084 | 2084 |
2085 } // namespace google_apis | 2085 } // namespace google_apis |
OLD | NEW |