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

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

Issue 225403021: Extract Profile-independent GCMService from GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore real IO thread in unit tests. Remove sources of flakiness by waiting instead of pumping whe… Created 6 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_
6 #define CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "chrome/browser/services/gcm/gcm_client_factory.h"
11 #include "chrome/browser/services/gcm/gcm_client_mock.h"
12
13 namespace gcm {
14
15 class GCMClient;
16
17 class FakeGCMClientFactory : public GCMClientFactory {
18 public:
19 explicit FakeGCMClientFactory(
20 GCMClientMock::LoadingDelay gcm_client_loading_delay);
21 virtual ~FakeGCMClientFactory();
22
23 // GCMClientFactory:
24 virtual scoped_ptr<GCMClient> BuildInstance() OVERRIDE;
25
26 private:
27 GCMClientMock::LoadingDelay gcm_client_loading_delay_;
28
29 DISALLOW_COPY_AND_ASSIGN(FakeGCMClientFactory);
30 };
31
32 } // namespace gcm
33
34 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/ticl_invalidation_service.cc ('k') | chrome/browser/services/gcm/fake_gcm_client_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698