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

Side by Side Diff: components/drive/job_scheduler_unittest.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « components/drive/job_scheduler.cc ('k') | components/drive/sync_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/drive/job_scheduler.h" 5 #include "components/drive/job_scheduler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.h"
15 #include "base/prefs/testing_pref_service.h"
16 #include "base/run_loop.h" 15 #include "base/run_loop.h"
17 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
18 #include "base/stl_util.h" 17 #include "base/stl_util.h"
19 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
20 #include "base/thread_task_runner_handle.h" 19 #include "base/thread_task_runner_handle.h"
21 #include "components/drive/drive_pref_names.h" 20 #include "components/drive/drive_pref_names.h"
22 #include "components/drive/drive_test_util.h" 21 #include "components/drive/drive_test_util.h"
23 #include "components/drive/event_logger.h" 22 #include "components/drive/event_logger.h"
24 #include "components/drive/service/fake_drive_service.h" 23 #include "components/drive/service/fake_drive_service.h"
25 #include "components/drive/service/test_util.h" 24 #include "components/drive/service/test_util.h"
25 #include "components/prefs/testing_pref_service.h"
26 #include "content/public/test/test_browser_thread_bundle.h" 26 #include "content/public/test/test_browser_thread_bundle.h"
27 #include "google_apis/drive/drive_api_parser.h" 27 #include "google_apis/drive/drive_api_parser.h"
28 #include "google_apis/drive/test_util.h" 28 #include "google_apis/drive/test_util.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 namespace drive { 31 namespace drive {
32 32
33 namespace { 33 namespace {
34 34
35 // Dummy value passed for the |expected_file_size| parameter of DownloadFile(). 35 // Dummy value passed for the |expected_file_size| parameter of DownloadFile().
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 scheduler_->CancelJob(first_job_id); 1032 scheduler_->CancelJob(first_job_id);
1033 1033
1034 // Only the first job should be cancelled. 1034 // Only the first job should be cancelled.
1035 base::RunLoop().RunUntilIdle(); 1035 base::RunLoop().RunUntilIdle();
1036 EXPECT_EQ(google_apis::DRIVE_CANCELLED, error1); 1036 EXPECT_EQ(google_apis::DRIVE_CANCELLED, error1);
1037 EXPECT_EQ(google_apis::HTTP_SUCCESS, error2); 1037 EXPECT_EQ(google_apis::HTTP_SUCCESS, error2);
1038 EXPECT_TRUE(scheduler_->GetJobInfoList().empty()); 1038 EXPECT_TRUE(scheduler_->GetJobInfoList().empty());
1039 } 1039 }
1040 1040
1041 } // namespace drive 1041 } // namespace drive
OLDNEW
« no previous file with comments | « components/drive/job_scheduler.cc ('k') | components/drive/sync_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698