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/write_on_cache_file.h" | 5 #include "chrome/browser/chromeos/drive/write_on_cache_file.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/chromeos/drive/dummy_file_system.h" | 8 #include "components/drive/dummy_file_system.h" |
9 #include "content/public/test/test_browser_thread_bundle.h" | 9 #include "content/public/test/test_browser_thread_bundle.h" |
10 #include "content/public/test/test_utils.h" | 10 #include "content/public/test/test_utils.h" |
11 #include "google_apis/drive/test_util.h" | 11 #include "google_apis/drive/test_util.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace drive { | 14 namespace drive { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 const base::FilePath::CharType kDrivePath[] = | 18 const base::FilePath::CharType kDrivePath[] = |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 base::FilePath(kInvalidPath), | 93 base::FilePath(kInvalidPath), |
94 std::string(), // mime_type | 94 std::string(), // mime_type |
95 google_apis::test_util::CreateCopyResultCallback(&error, &path)); | 95 google_apis::test_util::CreateCopyResultCallback(&error, &path)); |
96 content::RunAllBlockingPoolTasksUntilIdle(); | 96 content::RunAllBlockingPoolTasksUntilIdle(); |
97 | 97 |
98 EXPECT_EQ(FILE_ERROR_INVALID_OPERATION, error); | 98 EXPECT_EQ(FILE_ERROR_INVALID_OPERATION, error); |
99 EXPECT_TRUE(path.empty()); | 99 EXPECT_TRUE(path.empty()); |
100 } | 100 } |
101 | 101 |
102 } // namespace drive | 102 } // namespace drive |
OLD | NEW |