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

Side by Side Diff: google_apis/gaia/oauth2_mint_token_flow_unittest.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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
« no previous file with comments | « dbus/test_service.h ('k') | gpu/command_buffer/client/buffer_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // A complete set of unit tests for OAuth2MintTokenFlow. 5 // A complete set of unit tests for OAuth2MintTokenFlow.
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 MOCK_METHOD1(OnMintTokenSuccess, void(const std::string& access_token)); 129 MOCK_METHOD1(OnMintTokenSuccess, void(const std::string& access_token));
130 MOCK_METHOD1(OnIssueAdviceSuccess, 130 MOCK_METHOD1(OnIssueAdviceSuccess,
131 void (const IssueAdviceInfo& issue_advice)); 131 void (const IssueAdviceInfo& issue_advice));
132 MOCK_METHOD1(OnMintTokenFailure, 132 MOCK_METHOD1(OnMintTokenFailure,
133 void(const GoogleServiceAuthError& error)); 133 void(const GoogleServiceAuthError& error));
134 }; 134 };
135 135
136 class MockMintTokenFlow : public OAuth2MintTokenFlow { 136 class MockMintTokenFlow : public OAuth2MintTokenFlow {
137 public: 137 public:
138 explicit MockMintTokenFlow(MockDelegate* delegate, 138 MockMintTokenFlow(MockDelegate* delegate,
139 const OAuth2MintTokenFlow::Parameters& parameters ) 139 const OAuth2MintTokenFlow::Parameters& parameters)
140 : OAuth2MintTokenFlow(NULL, delegate, parameters) {} 140 : OAuth2MintTokenFlow(NULL, delegate, parameters) {}
141 ~MockMintTokenFlow() {} 141 ~MockMintTokenFlow() {}
142 142
143 MOCK_METHOD0(CreateAccessTokenFetcher, OAuth2AccessTokenFetcher*()); 143 MOCK_METHOD0(CreateAccessTokenFetcher, OAuth2AccessTokenFetcher*());
144 MOCK_METHOD0(CreateMintTokenFetcher, OAuth2MintTokenFetcher*()); 144 MOCK_METHOD0(CreateMintTokenFetcher, OAuth2MintTokenFetcher*());
145 }; 145 };
146 146
147 } // namespace 147 } // namespace
148 148
149 class OAuth2MintTokenFlowTest : public testing::Test { 149 class OAuth2MintTokenFlowTest : public testing::Test {
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 } 349 }
350 350
351 { // Non-null delegate. 351 { // Non-null delegate.
352 GoogleServiceAuthError error( 352 GoogleServiceAuthError error(
353 GoogleServiceAuthError::FromConnectionError(101)); 353 GoogleServiceAuthError::FromConnectionError(101));
354 CreateFlow(OAuth2MintTokenFlow::MODE_MINT_TOKEN_NO_FORCE); 354 CreateFlow(OAuth2MintTokenFlow::MODE_MINT_TOKEN_NO_FORCE);
355 EXPECT_CALL(delegate_, OnMintTokenFailure(error)); 355 EXPECT_CALL(delegate_, OnMintTokenFailure(error));
356 flow_->ProcessMintAccessTokenFailure(error); 356 flow_->ProcessMintAccessTokenFailure(error);
357 } 357 }
358 } 358 }
OLDNEW
« no previous file with comments | « dbus/test_service.h ('k') | gpu/command_buffer/client/buffer_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698