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

Unified Diff: chrome/browser/chromeos/net/wake_on_wifi_manager_unittest.cc

Issue 2122603007: Move FakeGCMProfileService to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/gcm/gcm_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/wake_on_wifi_manager_unittest.cc
diff --git a/chrome/browser/chromeos/net/wake_on_wifi_manager_unittest.cc b/chrome/browser/chromeos/net/wake_on_wifi_manager_unittest.cc
index c3f2c06eff3ca14fd1f5e79a810f7bfc0113b5ae..a7d21d2249d75076bf1faad6cf266dde1b22c7dd 100644
--- a/chrome/browser/chromeos/net/wake_on_wifi_manager_unittest.cc
+++ b/chrome/browser/chromeos/net/wake_on_wifi_manager_unittest.cc
@@ -3,10 +3,10 @@
// found in the LICENSE file.
#include "chrome/browser/chromeos/net/wake_on_wifi_connection_observer.h"
-#include "chrome/browser/services/gcm/fake_gcm_profile_service.h"
#include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "chromeos/network/mock_network_device_handler.h"
+#include "components/gcm_driver/fake_gcm_profile_service.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -18,16 +18,11 @@ using testing::StrictMock;
namespace chromeos {
namespace {
-std::unique_ptr<KeyedService> BuildFakeGCMProfileService(
- content::BrowserContext* context) {
- return gcm::FakeGCMProfileService::Build(static_cast<Profile*>(context));
-}
-
class WakeOnWifiObserverTest : public ::testing::Test {
public:
WakeOnWifiObserverTest() {
gcm::GCMProfileServiceFactory::GetInstance()->SetTestingFactory(
- &profile_, &BuildFakeGCMProfileService);
+ &profile_, &gcm::FakeGCMProfileService::Build);
}
~WakeOnWifiObserverTest() override {}
« no previous file with comments | « no previous file | chrome/browser/extensions/api/gcm/gcm_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698