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 "chrome/browser/chromeos/drive/file_system_util.h" | 5 #include "chrome/browser/chromeos/drive/file_system_util.h" |
6 | 6 |
7 #include "base/file_util.h" | |
8 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/common/chrome_constants.h" | 12 #include "chrome/common/chrome_constants.h" |
13 #include "chrome/test/base/testing_browser_process.h" | 13 #include "chrome/test/base/testing_browser_process.h" |
14 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
15 #include "chrome/test/base/testing_profile_manager.h" | 15 #include "chrome/test/base/testing_profile_manager.h" |
16 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
17 #include "content/public/test/test_file_system_options.h" | 17 #include "content/public/test/test_file_system_options.h" |
18 #include "google_apis/drive/test_util.h" | 18 #include "google_apis/drive/test_util.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // Non GDoc file. | 279 // Non GDoc file. |
280 file = temp_dir.path().AppendASCII("test.txt"); | 280 file = temp_dir.path().AppendASCII("test.txt"); |
281 std::string data = "Hello world!"; | 281 std::string data = "Hello world!"; |
282 EXPECT_TRUE(google_apis::test_util::WriteStringToFile(file, data)); | 282 EXPECT_TRUE(google_apis::test_util::WriteStringToFile(file, data)); |
283 EXPECT_TRUE(ReadUrlFromGDocFile(file).is_empty()); | 283 EXPECT_TRUE(ReadUrlFromGDocFile(file).is_empty()); |
284 EXPECT_TRUE(ReadResourceIdFromGDocFile(file).empty()); | 284 EXPECT_TRUE(ReadResourceIdFromGDocFile(file).empty()); |
285 } | 285 } |
286 | 286 |
287 } // namespace util | 287 } // namespace util |
288 } // namespace drive | 288 } // namespace drive |
OLD | NEW |