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

Side by Side Diff: chrome/browser/services/gcm/fake_gcm_profile_service.h

Issue 1425783002: Componentizing GcmProfileService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UT errors as per comments Created 5 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_PROFILE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_PROFILE_SERVICE_H_
6 #define CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_PROFILE_SERVICE_H_ 6 #define CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_PROFILE_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/services/gcm/gcm_profile_service.h"
13 #include "components/gcm_driver/gcm_driver.h" 12 #include "components/gcm_driver/gcm_driver.h"
13 #include "components/gcm_driver/gcm_profile_service.h"
14
15 class Profile;
14 16
15 namespace content { 17 namespace content {
16 class BrowserContext; 18 class BrowserContext;
17 } // namespace content 19 } // namespace content
18 20
19 namespace gcm { 21 namespace gcm {
20 22
21 // Acts as a bridge between GCM API and GCMClient layer for testing purposes. 23 // Acts as a bridge between GCM API and GCMClient layer for testing purposes.
22 class FakeGCMProfileService : public GCMProfileService { 24 class FakeGCMProfileService : public GCMProfileService {
23 public: 25 public:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 OutgoingMessage last_sent_message_; 76 OutgoingMessage last_sent_message_;
75 std::string last_receiver_id_; 77 std::string last_receiver_id_;
76 UnregisterCallback unregister_callback_; 78 UnregisterCallback unregister_callback_;
77 79
78 DISALLOW_COPY_AND_ASSIGN(FakeGCMProfileService); 80 DISALLOW_COPY_AND_ASSIGN(FakeGCMProfileService);
79 }; 81 };
80 82
81 } // namespace gcm 83 } // namespace gcm
82 84
83 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_PROFILE_SERVICE_H_ 85 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_PROFILE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/push_messaging/push_messaging_service_impl.cc ('k') | chrome/browser/services/gcm/fake_gcm_profile_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698