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

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

Issue 10915226: OBSOLETE - Move drive.proto to browser/google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/json/json_file_value_serializer.h" 11 #include "base/json/json_file_value_serializer.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/scoped_temp_dir.h" 15 #include "base/scoped_temp_dir.h"
16 #include "base/stringprintf.h" 16 #include "base/stringprintf.h"
17 #include "base/threading/sequenced_worker_pool.h" 17 #include "base/threading/sequenced_worker_pool.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "chrome/browser/chromeos/gdata/drive.pb.h"
20 #include "chrome/browser/chromeos/gdata/drive_api_parser.h" 19 #include "chrome/browser/chromeos/gdata/drive_api_parser.h"
21 #include "chrome/browser/chromeos/gdata/drive_file_system.h" 20 #include "chrome/browser/chromeos/gdata/drive_file_system.h"
22 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" 21 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h"
23 #include "chrome/browser/chromeos/gdata/drive_function_remove.h" 22 #include "chrome/browser/chromeos/gdata/drive_function_remove.h"
24 #include "chrome/browser/chromeos/gdata/drive_test_util.h" 23 #include "chrome/browser/chromeos/gdata/drive_test_util.h"
25 #include "chrome/browser/chromeos/gdata/drive_uploader.h" 24 #include "chrome/browser/chromeos/gdata/drive_uploader.h"
26 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h" 25 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h"
27 #include "chrome/browser/chromeos/gdata/mock_directory_change_observer.h" 26 #include "chrome/browser/chromeos/gdata/mock_directory_change_observer.h"
28 #include "chrome/browser/chromeos/gdata/mock_drive_cache_observer.h" 27 #include "chrome/browser/chromeos/gdata/mock_drive_cache_observer.h"
29 #include "chrome/browser/chromeos/gdata/mock_drive_service.h" 28 #include "chrome/browser/chromeos/gdata/mock_drive_service.h"
30 #include "chrome/browser/chromeos/gdata/mock_drive_web_apps_registry.h" 29 #include "chrome/browser/chromeos/gdata/mock_drive_web_apps_registry.h"
31 #include "chrome/browser/chromeos/gdata/mock_free_disk_space_getter.h" 30 #include "chrome/browser/chromeos/gdata/mock_free_disk_space_getter.h"
31 #include "chrome/browser/google_apis/drive.pb.h"
32 #include "chrome/common/chrome_paths.h" 32 #include "chrome/common/chrome_paths.h"
33 #include "chrome/test/base/testing_profile.h" 33 #include "chrome/test/base/testing_profile.h"
34 #include "content/public/browser/browser_thread.h" 34 #include "content/public/browser/browser_thread.h"
35 #include "content/public/test/test_browser_thread.h" 35 #include "content/public/test/test_browser_thread.h"
36 #include "testing/gmock/include/gmock/gmock.h" 36 #include "testing/gmock/include/gmock/gmock.h"
37 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
38 38
39 using ::testing::AnyNumber; 39 using ::testing::AnyNumber;
40 using ::testing::AtLeast; 40 using ::testing::AtLeast;
41 using ::testing::Eq; 41 using ::testing::Eq;
(...skipping 2568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2610 2610
2611 // Try to close the same file twice. 2611 // Try to close the same file twice.
2612 file_system_->CloseFile(kFileInRoot, close_file_callback); 2612 file_system_->CloseFile(kFileInRoot, close_file_callback);
2613 message_loop_.Run(); 2613 message_loop_.Run();
2614 2614
2615 // It must fail. 2615 // It must fail.
2616 EXPECT_EQ(DRIVE_FILE_ERROR_NOT_FOUND, callback_helper_->last_error_); 2616 EXPECT_EQ(DRIVE_FILE_ERROR_NOT_FOUND, callback_helper_->last_error_);
2617 } 2617 }
2618 2618
2619 } // namespace gdata 2619 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_file_system_proxy.cc ('k') | chrome/browser/chromeos/gdata/drive_file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698