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

Side by Side Diff: chrome/browser/chromeos/drive/file_system_unittest.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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/drive/file_system.h" 5 #include "chrome/browser/chromeos/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_util.h" 11 #include "base/file_util.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop/message_loop_proxy.h" 15 #include "base/message_loop/message_loop_proxy.h"
16 #include "base/prefs/testing_pref_service.h" 16 #include "base/prefs/testing_pref_service.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "chrome/browser/chromeos/drive/change_list_loader.h" 18 #include "chrome/browser/chromeos/drive/change_list_loader.h"
19 #include "chrome/browser/chromeos/drive/change_list_processor.h" 19 #include "chrome/browser/chromeos/drive/change_list_processor.h"
20 #include "chrome/browser/chromeos/drive/drive.pb.h" 20 #include "chrome/browser/chromeos/drive/drive.pb.h"
21 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" 21 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h"
22 #include "chrome/browser/chromeos/drive/file_system_observer.h" 22 #include "chrome/browser/chromeos/drive/file_system_observer.h"
23 #include "chrome/browser/chromeos/drive/file_system_util.h" 23 #include "chrome/browser/chromeos/drive/file_system_util.h"
24 #include "chrome/browser/chromeos/drive/job_scheduler.h" 24 #include "chrome/browser/chromeos/drive/job_scheduler.h"
25 #include "chrome/browser/chromeos/drive/sync_client.h" 25 #include "chrome/browser/chromeos/drive/sync_client.h"
26 #include "chrome/browser/chromeos/drive/test_util.h" 26 #include "chrome/browser/chromeos/drive/test_util.h"
27 #include "chrome/browser/drive/fake_drive_service.h" 27 #include "chrome/browser/drive/fake_drive_service.h"
28 #include "chrome/browser/google_apis/drive_api_parser.h"
29 #include "chrome/browser/google_apis/test_util.h"
30 #include "content/public/test/test_browser_thread_bundle.h" 28 #include "content/public/test/test_browser_thread_bundle.h"
29 #include "google_apis/drive/drive_api_parser.h"
30 #include "google_apis/drive/test_util.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
32 32
33 namespace drive { 33 namespace drive {
34 namespace { 34 namespace {
35 35
36 // Counts the number of invocation, and if it increased up to |expected_counter| 36 // Counts the number of invocation, and if it increased up to |expected_counter|
37 // quits the current message loop by calling |quit|. 37 // quits the current message loop by calling |quit|.
38 void AsyncInitializationCallback( 38 void AsyncInitializationCallback(
39 int* counter, int expected_counter, const base::Closure& quit, 39 int* counter, int expected_counter, const base::Closure& quit,
40 FileError error, scoped_ptr<ResourceEntry> entry) { 40 FileError error, scoped_ptr<ResourceEntry> entry) {
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 kEmbedOrigin, 734 kEmbedOrigin,
735 google_apis::test_util::CreateCopyResultCallback(&error, &share_url)); 735 google_apis::test_util::CreateCopyResultCallback(&error, &share_url));
736 test_util::RunBlockingPoolTask(); 736 test_util::RunBlockingPoolTask();
737 737
738 // Verify the error and the share url, which should be empty. 738 // Verify the error and the share url, which should be empty.
739 EXPECT_EQ(FILE_ERROR_FAILED, error); 739 EXPECT_EQ(FILE_ERROR_FAILED, error);
740 EXPECT_TRUE(share_url.is_empty()); 740 EXPECT_TRUE(share_url.is_empty());
741 } 741 }
742 742
743 } // namespace drive 743 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_interface.h ('k') | chrome/browser/chromeos/drive/file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698