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

Side by Side Diff: chrome/browser/chrome_to_mobile_service_unittest.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chrome_to_mobile_service.h" 5 #include "chrome/browser/chrome_to_mobile_service.h"
6 6
7 #include "base/prefs/pref_service.h"
7 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/chrome_to_mobile_service_factory.h" 9 #include "chrome/browser/chrome_to_mobile_service_factory.h"
9 #include "chrome/browser/ui/browser_command_controller.h"
10 #include "chrome/browser/command_updater.h" 10 #include "chrome/browser/command_updater.h"
11 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/browser/signin/token_service.h" 11 #include "chrome/browser/signin/token_service.h"
13 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/browser_command_controller.h"
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" 14 #include "chrome/browser/ui/tabs/tab_strip_model.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "chrome/common/extensions/feature_switch.h" 16 #include "chrome/common/extensions/feature_switch.h"
17 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "chrome/common/url_constants.h" 18 #include "chrome/common/url_constants.h"
19 #include "chrome/test/base/browser_with_test_window_test.h" 19 #include "chrome/test/base/browser_with_test_window_test.h"
20 #include "content/public/browser/navigation_controller.h" 20 #include "content/public/browser/navigation_controller.h"
21 #include "content/public/browser/notification_details.h" 21 #include "content/public/browser/notification_details.h"
22 #include "content/public/browser/notification_source.h" 22 #include "content/public/browser/notification_source.h"
23 #include "content/public/browser/web_contents.h" 23 #include "content/public/browser/web_contents.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Send a Gaia OAuth2 Login service dummy token (should clear the token). 197 // Send a Gaia OAuth2 Login service dummy token (should clear the token).
198 TokenService::TokenAvailableDetails login_details( 198 TokenService::TokenAvailableDetails login_details(
199 GaiaConstants::kGaiaOAuth2LoginRefreshToken, dummy_string); 199 GaiaConstants::kGaiaOAuth2LoginRefreshToken, dummy_string);
200 service->Observe(chrome::NOTIFICATION_TOKEN_AVAILABLE, 200 service->Observe(chrome::NOTIFICATION_TOKEN_AVAILABLE,
201 content::Source<ChromeToMobileServiceTest>(this), 201 content::Source<ChromeToMobileServiceTest>(this),
202 content::Details<TokenService::TokenAvailableDetails>(&login_details)); 202 content::Details<TokenService::TokenAvailableDetails>(&login_details));
203 EXPECT_TRUE(service->GetAccessTokenForTest().empty()); 203 EXPECT_TRUE(service->GetAccessTokenForTest().empty());
204 } 204 }
205 205
206 } // namespace 206 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/chrome_to_mobile_service.cc ('k') | chrome/browser/chromeos/accessibility/accessibility_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698