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

Unified Diff: chrome/browser/chrome_to_mobile_service_unittest.cc

Issue 10828353: Chrome To Mobile Service refactoring and polish, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « chrome/browser/chrome_to_mobile_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_to_mobile_service_unittest.cc
diff --git a/chrome/browser/chrome_to_mobile_service_unittest.cc b/chrome/browser/chrome_to_mobile_service_unittest.cc
index 38c1058650dcdf69484f376f741a68ed79ea5425..d1e6d4163b53947f4333cdef9149e36d459afba4 100644
--- a/chrome/browser/chrome_to_mobile_service_unittest.cc
+++ b/chrome/browser/chrome_to_mobile_service_unittest.cc
@@ -17,13 +17,13 @@ const char kDummyString[] = "dummy";
class DummyNotificationSource {};
-// A mock ChromeToMobileService with a mocked out RefreshAccessToken method.
+// A mock ChromeToMobileService with a mocked out RequestAccessToken method.
class MockChromeToMobileService : public ChromeToMobileService {
public:
MockChromeToMobileService();
~MockChromeToMobileService();
- MOCK_METHOD0(RefreshAccessToken, void());
+ MOCK_METHOD0(RequestAccessToken, void());
private:
DISALLOW_COPY_AND_ASSIGN(MockChromeToMobileService);
@@ -50,9 +50,9 @@ ChromeToMobileServiceTest::ChromeToMobileServiceTest() {}
ChromeToMobileServiceTest::~ChromeToMobileServiceTest() {}
-// Ensure that RefreshAccessToken is not called for irrelevant notifications.
+// Ensure that RequestAccessToken is not called for irrelevant notifications.
TEST_F(ChromeToMobileServiceTest, IgnoreIrrelevantNotifications) {
- EXPECT_CALL(service_, RefreshAccessToken()).Times(0);
+ EXPECT_CALL(service_, RequestAccessToken()).Times(0);
// Send dummy service/token details (should not refresh token).
DummyNotificationSource dummy_source;
@@ -62,9 +62,9 @@ TEST_F(ChromeToMobileServiceTest, IgnoreIrrelevantNotifications) {
content::Details<TokenService::TokenAvailableDetails>(&dummy_details));
}
-// Ensure that RefreshAccessToken is called on the proper notification.
+// Ensure that RequestAccessToken is called on the proper notification.
TEST_F(ChromeToMobileServiceTest, AuthenticateOnTokenAvailable) {
- EXPECT_CALL(service_, RefreshAccessToken()).Times(1);
+ EXPECT_CALL(service_, RequestAccessToken()).Times(1);
// Send a Gaia OAuth2 Login service dummy token (should refresh token).
DummyNotificationSource dummy_source;
« no previous file with comments | « chrome/browser/chrome_to_mobile_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698