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

Unified Diff: chrome/test/device_management_test_util.cc

Issue 5174006: Move DeviceManagementPolicyProvider into the profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback. Created 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/device_management_test_util.cc
diff --git a/chrome/test/device_management_test_util.cc b/chrome/test/device_management_test_util.cc
deleted file mode 100644
index 2bcff7fb6399da5cc81456f9587e4b3adba5cb5a..0000000000000000000000000000000000000000
--- a/chrome/test/device_management_test_util.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/test/device_management_test_util.h"
-
-#include <string>
-
-#include "chrome/browser/net/gaia/token_service.h"
-#include "chrome/common/net/gaia/gaia_constants.h"
-#include "chrome/common/notification_service.h"
-#include "chrome/common/notification_source.h"
-#include "chrome/common/notification_type.h"
-
-namespace policy {
-
-namespace {
-
-static const char kFakeGaiaAuthToken[] = "FakeGAIAToken";
-
-} // namespace
-
-void SimulateSuccessfulLogin() {
- const std::string service(GaiaConstants::kDeviceManagementService);
- const std::string auth_token(kFakeGaiaAuthToken);
- TokenService::TokenAvailableDetails details(service, auth_token);
- NotificationService::current()->Notify(
- NotificationType::TOKEN_AVAILABLE,
- Source<TokenService>(NULL),
- Details<const TokenService::TokenAvailableDetails>(&details));
-}
-
-} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698