Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: chrome/browser/chromeos/gdata/drive_file_system_unittest.cc

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reflect comments Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/gdata/drive_file_system.h" 5 #include "chrome/browser/chromeos/gdata/drive_file_system.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/json/json_file_value_serializer.h" 13 #include "base/json/json_file_value_serializer.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/scoped_temp_dir.h" 17 #include "base/scoped_temp_dir.h"
18 #include "base/stringprintf.h" 18 #include "base/stringprintf.h"
19 #include "base/threading/sequenced_worker_pool.h" 19 #include "base/threading/sequenced_worker_pool.h"
20 #include "base/values.h" 20 #include "base/values.h"
21 #include "chrome/browser/chromeos/gdata/drive.pb.h" 21 #include "chrome/browser/chromeos/gdata/drive.pb.h"
22 #include "chrome/browser/chromeos/gdata/drive_api_parser.h"
23 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" 22 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h"
24 #include "chrome/browser/chromeos/gdata/drive_function_remove.h" 23 #include "chrome/browser/chromeos/gdata/drive_function_remove.h"
25 #include "chrome/browser/chromeos/gdata/drive_test_util.h" 24 #include "chrome/browser/chromeos/gdata/drive_test_util.h"
26 #include "chrome/browser/chromeos/gdata/drive_uploader.h" 25 #include "chrome/browser/chromeos/gdata/drive_uploader.h"
27 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h" 26 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h"
28 #include "chrome/browser/chromeos/gdata/mock_directory_change_observer.h" 27 #include "chrome/browser/chromeos/gdata/mock_directory_change_observer.h"
29 #include "chrome/browser/chromeos/gdata/mock_drive_cache_observer.h" 28 #include "chrome/browser/chromeos/gdata/mock_drive_cache_observer.h"
30 #include "chrome/browser/chromeos/gdata/mock_drive_service.h" 29 #include "chrome/browser/chromeos/gdata/mock_drive_service.h"
31 #include "chrome/browser/chromeos/gdata/mock_drive_uploader.h" 30 #include "chrome/browser/chromeos/gdata/mock_drive_uploader.h"
32 #include "chrome/browser/chromeos/gdata/mock_drive_web_apps_registry.h" 31 #include "chrome/browser/chromeos/gdata/mock_drive_web_apps_registry.h"
33 #include "chrome/browser/chromeos/gdata/mock_free_disk_space_getter.h" 32 #include "chrome/browser/chromeos/gdata/mock_free_disk_space_getter.h"
33 #include "chrome/browser/google_apis/drive_api_parser.h"
34 #include "chrome/common/chrome_paths.h" 34 #include "chrome/common/chrome_paths.h"
35 #include "chrome/test/base/testing_profile.h" 35 #include "chrome/test/base/testing_profile.h"
36 #include "content/public/browser/browser_thread.h" 36 #include "content/public/browser/browser_thread.h"
37 #include "content/public/test/test_browser_thread.h" 37 #include "content/public/test/test_browser_thread.h"
38 #include "testing/gmock/include/gmock/gmock.h" 38 #include "testing/gmock/include/gmock/gmock.h"
39 #include "testing/gtest/include/gtest/gtest.h" 39 #include "testing/gtest/include/gtest/gtest.h"
40 40
41 using ::testing::AnyNumber; 41 using ::testing::AnyNumber;
42 using ::testing::AtLeast; 42 using ::testing::AtLeast;
43 using ::testing::Eq; 43 using ::testing::Eq;
(...skipping 2559 matching lines...) Expand 10 before | Expand all | Expand 10 after
2603 2603
2604 // Try to close the same file twice. 2604 // Try to close the same file twice.
2605 file_system_->CloseFile(kFileInRoot, close_file_callback); 2605 file_system_->CloseFile(kFileInRoot, close_file_callback);
2606 message_loop_.Run(); 2606 message_loop_.Run();
2607 2607
2608 // It must fail. 2608 // It must fail.
2609 EXPECT_EQ(DRIVE_FILE_ERROR_NOT_FOUND, callback_helper_->last_error_); 2609 EXPECT_EQ(DRIVE_FILE_ERROR_NOT_FOUND, callback_helper_->last_error_);
2610 } 2610 }
2611 2611
2612 } // namespace gdata 2612 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_file_system_proxy.cc ('k') | chrome/browser/chromeos/gdata/drive_files.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698