| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/file_system/create_directory_operation.h
" | 5 #include "chrome/browser/chromeos/drive/file_system/create_directory_operation.h
" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 7 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
| 8 #include "chrome/browser/google_apis/test_util.h" | 8 #include "google_apis/drive/test_util.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace drive { | 11 namespace drive { |
| 12 namespace file_system { | 12 namespace file_system { |
| 13 | 13 |
| 14 class CreateDirectoryOperationTest : public OperationTestBase { | 14 class CreateDirectoryOperationTest : public OperationTestBase { |
| 15 protected: | 15 protected: |
| 16 // Returns FILE_ERROR_OK if a directory is found at |path|. | 16 // Returns FILE_ERROR_OK if a directory is found at |path|. |
| 17 FileError FindDirectory(const base::FilePath& path) { | 17 FileError FindDirectory(const base::FilePath& path) { |
| 18 ResourceEntry entry; | 18 ResourceEntry entry; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 kExistingFile.AppendASCII("New Directory"), | 105 kExistingFile.AppendASCII("New Directory"), |
| 106 false, // is_exclusive | 106 false, // is_exclusive |
| 107 true, // is_recursive | 107 true, // is_recursive |
| 108 google_apis::test_util::CreateCopyResultCallback(&error)); | 108 google_apis::test_util::CreateCopyResultCallback(&error)); |
| 109 test_util::RunBlockingPoolTask(); | 109 test_util::RunBlockingPoolTask(); |
| 110 EXPECT_EQ(FILE_ERROR_NOT_FOUND, error); | 110 EXPECT_EQ(FILE_ERROR_NOT_FOUND, error); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace file_system | 113 } // namespace file_system |
| 114 } // namespace drive | 114 } // namespace drive |
| OLD | NEW |