| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/drive/sync/entry_update_performer.h" | 5 #include "chrome/browser/chromeos/drive/sync/entry_update_performer.h" |
| 6 | 6 |
| 7 #include "base/task_runner_util.h" | 7 #include "base/task_runner_util.h" |
| 8 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 8 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
| 9 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 9 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
| 10 #include "chrome/browser/drive/drive_api_util.h" | 10 #include "chrome/browser/drive/drive_api_util.h" |
| 11 #include "chrome/browser/drive/fake_drive_service.h" | 11 #include "chrome/browser/drive/fake_drive_service.h" |
| 12 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 12 #include "google_apis/drive/gdata_wapi_parser.h" |
| 13 #include "chrome/browser/google_apis/test_util.h" | 13 #include "google_apis/drive/test_util.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace drive { | 16 namespace drive { |
| 17 namespace internal { | 17 namespace internal { |
| 18 | 18 |
| 19 class EntryUpdatePerformerTest : public file_system::OperationTestBase { | 19 class EntryUpdatePerformerTest : public file_system::OperationTestBase { |
| 20 protected: | 20 protected: |
| 21 virtual void SetUp() OVERRIDE { | 21 virtual void SetUp() OVERRIDE { |
| 22 OperationTestBase::SetUp(); | 22 OperationTestBase::SetUp(); |
| 23 performer_.reset(new EntryUpdatePerformer(blocking_task_runner(), | 23 performer_.reset(new EntryUpdatePerformer(blocking_task_runner(), |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 const std::string id = "this ID should result in NOT_FOUND"; | 97 const std::string id = "this ID should result in NOT_FOUND"; |
| 98 FileError error = FILE_ERROR_FAILED; | 98 FileError error = FILE_ERROR_FAILED; |
| 99 performer_->UpdateEntry( | 99 performer_->UpdateEntry( |
| 100 id, google_apis::test_util::CreateCopyResultCallback(&error)); | 100 id, google_apis::test_util::CreateCopyResultCallback(&error)); |
| 101 test_util::RunBlockingPoolTask(); | 101 test_util::RunBlockingPoolTask(); |
| 102 EXPECT_EQ(FILE_ERROR_NOT_FOUND, error); | 102 EXPECT_EQ(FILE_ERROR_NOT_FOUND, error); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace internal | 105 } // namespace internal |
| 106 } // namespace drive | 106 } // namespace drive |
| OLD | NEW |