| 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 | 796 |
| 797 virtual void GetEntryInfoCallback( | 797 virtual void GetEntryInfoCallback( |
| 798 GDataFileError error, | 798 GDataFileError error, |
| 799 scoped_ptr<GDataEntryProto> entry_proto) { | 799 scoped_ptr<GDataEntryProto> entry_proto) { |
| 800 last_error_ = error; | 800 last_error_ = error; |
| 801 entry_proto_ = entry_proto.Pass(); | 801 entry_proto_ = entry_proto.Pass(); |
| 802 } | 802 } |
| 803 | 803 |
| 804 virtual void ReadDirectoryCallback( | 804 virtual void ReadDirectoryCallback( |
| 805 GDataFileError error, | 805 GDataFileError error, |
| 806 bool /* hide_hosted_documents */, | |
| 807 scoped_ptr<GDataEntryProtoVector> entries) { | 806 scoped_ptr<GDataEntryProtoVector> entries) { |
| 808 last_error_ = error; | 807 last_error_ = error; |
| 809 directory_entries_ = entries.Pass(); | 808 directory_entries_ = entries.Pass(); |
| 810 } | 809 } |
| 811 | 810 |
| 812 GDataFileError last_error_; | 811 GDataFileError last_error_; |
| 813 FilePath download_path_; | 812 FilePath download_path_; |
| 814 FilePath opened_file_path_; | 813 FilePath opened_file_path_; |
| 815 std::string mime_type_; | 814 std::string mime_type_; |
| 816 GDataFileType file_type_; | 815 GDataFileType file_type_; |
| (...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2618 | 2617 |
| 2619 // Try to close the same file twice. | 2618 // Try to close the same file twice. |
| 2620 file_system_->CloseFile(kFileInRoot, close_file_callback); | 2619 file_system_->CloseFile(kFileInRoot, close_file_callback); |
| 2621 message_loop_.Run(); | 2620 message_loop_.Run(); |
| 2622 | 2621 |
| 2623 // It must fail. | 2622 // It must fail. |
| 2624 EXPECT_EQ(GDATA_FILE_ERROR_NOT_FOUND, callback_helper_->last_error_); | 2623 EXPECT_EQ(GDATA_FILE_ERROR_NOT_FOUND, callback_helper_->last_error_); |
| 2625 } | 2624 } |
| 2626 | 2625 |
| 2627 } // namespace gdata | 2626 } // namespace gdata |
| OLD | NEW |