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

Side by Side Diff: components/gcm_driver/gcm_driver_desktop_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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/gcm_driver/gcm_driver_desktop.h" 5 #include "components/gcm_driver/gcm_driver_desktop.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/metrics/field_trial.h" 14 #include "base/metrics/field_trial.h"
15 #include "base/prefs/pref_registry_simple.h"
16 #include "base/prefs/testing_pref_service.h"
17 #include "base/run_loop.h" 15 #include "base/run_loop.h"
18 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
19 #include "base/test/test_simple_task_runner.h" 17 #include "base/test/test_simple_task_runner.h"
20 #include "base/thread_task_runner_handle.h" 18 #include "base/thread_task_runner_handle.h"
21 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
22 #include "components/gcm_driver/crypto/gcm_encryption_provider.h" 20 #include "components/gcm_driver/crypto/gcm_encryption_provider.h"
23 #include "components/gcm_driver/fake_gcm_app_handler.h" 21 #include "components/gcm_driver/fake_gcm_app_handler.h"
24 #include "components/gcm_driver/fake_gcm_client.h" 22 #include "components/gcm_driver/fake_gcm_client.h"
25 #include "components/gcm_driver/fake_gcm_client_factory.h" 23 #include "components/gcm_driver/fake_gcm_client_factory.h"
26 #include "components/gcm_driver/gcm_app_handler.h" 24 #include "components/gcm_driver/gcm_app_handler.h"
27 #include "components/gcm_driver/gcm_channel_status_request.h" 25 #include "components/gcm_driver/gcm_channel_status_request.h"
28 #include "components/gcm_driver/gcm_channel_status_syncer.h" 26 #include "components/gcm_driver/gcm_channel_status_syncer.h"
29 #include "components/gcm_driver/gcm_client_factory.h" 27 #include "components/gcm_driver/gcm_client_factory.h"
30 #include "components/gcm_driver/gcm_connection_observer.h" 28 #include "components/gcm_driver/gcm_connection_observer.h"
29 #include "components/prefs/pref_registry_simple.h"
30 #include "components/prefs/testing_pref_service.h"
31 #include "net/url_request/test_url_fetcher_factory.h" 31 #include "net/url_request/test_url_fetcher_factory.h"
32 #include "net/url_request/url_fetcher_delegate.h" 32 #include "net/url_request/url_fetcher_delegate.h"
33 #include "net/url_request/url_request_context_getter.h" 33 #include "net/url_request/url_request_context_getter.h"
34 #include "net/url_request/url_request_test_util.h" 34 #include "net/url_request/url_request_test_util.h"
35 #include "sync/protocol/experiment_status.pb.h" 35 #include "sync/protocol/experiment_status.pb.h"
36 #include "sync/protocol/experiments_specifics.pb.h" 36 #include "sync/protocol/experiments_specifics.pb.h"
37 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
38 38
39 namespace gcm { 39 namespace gcm {
40 40
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 PumpUILoop(); 1313 PumpUILoop();
1314 EXPECT_EQ(GCMClient::UNKNOWN_ERROR, unregistration_result()); 1314 EXPECT_EQ(GCMClient::UNKNOWN_ERROR, unregistration_result());
1315 1315
1316 // DeleteToken operation will be invoked after GCMClient becomes ready. 1316 // DeleteToken operation will be invoked after GCMClient becomes ready.
1317 GetGCMClient()->PerformDelayedStart(); 1317 GetGCMClient()->PerformDelayedStart();
1318 WaitForAsyncOperation(); 1318 WaitForAsyncOperation();
1319 EXPECT_EQ(GCMClient::SUCCESS, unregistration_result()); 1319 EXPECT_EQ(GCMClient::SUCCESS, unregistration_result());
1320 } 1320 }
1321 1321
1322 } // namespace gcm 1322 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_channel_status_syncer.cc ('k') | components/gcm_driver/gcm_profile_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698