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/fake_file_system.h" | 5 #include "chrome/browser/chromeos/drive/fake_file_system.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "chrome/browser/chromeos/drive/file_system_util.h" | 9 #include "chrome/browser/chromeos/drive/file_system_util.h" |
10 #include "chrome/browser/drive/fake_drive_service.h" | 10 #include "chrome/browser/drive/fake_drive_service.h" |
11 #include "chrome/browser/google_apis/test_util.h" | |
12 #include "content/public/test/test_browser_thread_bundle.h" | 11 #include "content/public/test/test_browser_thread_bundle.h" |
| 12 #include "google_apis/drive/test_util.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace drive { | 15 namespace drive { |
16 namespace test_util { | 16 namespace test_util { |
17 | 17 |
18 class FakeFileSystemTest : public ::testing::Test { | 18 class FakeFileSystemTest : public ::testing::Test { |
19 protected: | 19 protected: |
20 virtual void SetUp() OVERRIDE { | 20 virtual void SetUp() OVERRIDE { |
21 // Initialize FakeDriveService. | 21 // Initialize FakeDriveService. |
22 fake_drive_service_.reset(new FakeDriveService); | 22 fake_drive_service_.reset(new FakeDriveService); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 util::GetDriveMyDriveRootPath().AppendASCII("Invalid File Name"), | 152 util::GetDriveMyDriveRootPath().AppendASCII("Invalid File Name"), |
153 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); | 153 google_apis::test_util::CreateCopyResultCallback(&error, &entry)); |
154 base::RunLoop().RunUntilIdle(); | 154 base::RunLoop().RunUntilIdle(); |
155 | 155 |
156 ASSERT_EQ(FILE_ERROR_NOT_FOUND, error); | 156 ASSERT_EQ(FILE_ERROR_NOT_FOUND, error); |
157 ASSERT_FALSE(entry); | 157 ASSERT_FALSE(entry); |
158 } | 158 } |
159 | 159 |
160 } // namespace test_util | 160 } // namespace test_util |
161 } // namespace drive | 161 } // namespace drive |
OLD | NEW |