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

Side by Side Diff: google_apis/gaia/mock_url_fetcher_factory.h

Issue 1548673002: Switch to standard integer types in google_apis/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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
« no previous file with comments | « google_apis/gaia/gaia_urls.h ('k') | google_apis/gaia/oauth2_access_token_fetcher.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 collection of classes that are useful when testing things that use a 5 // A collection of classes that are useful when testing things that use a
6 // GaiaAuthFetcher. 6 // GaiaAuthFetcher.
7 7
8 #ifndef GOOGLE_APIS_GAIA_MOCK_URL_FETCHER_FACTORY_H_ 8 #ifndef GOOGLE_APIS_GAIA_MOCK_URL_FETCHER_FACTORY_H_
9 #define GOOGLE_APIS_GAIA_MOCK_URL_FETCHER_FACTORY_H_ 9 #define GOOGLE_APIS_GAIA_MOCK_URL_FETCHER_FACTORY_H_
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/macros.h"
13 #include "google_apis/gaia/gaia_auth_fetcher.h" 14 #include "google_apis/gaia/gaia_auth_fetcher.h"
14 #include "net/url_request/test_url_fetcher_factory.h" 15 #include "net/url_request/test_url_fetcher_factory.h"
15 #include "net/url_request/url_request_status.h" 16 #include "net/url_request/url_request_status.h"
16 17
17 // Responds as though ClientLogin returned from the server. 18 // Responds as though ClientLogin returned from the server.
18 class MockFetcher : public net::TestURLFetcher { 19 class MockFetcher : public net::TestURLFetcher {
19 public: 20 public:
20 MockFetcher(bool success, 21 MockFetcher(bool success,
21 const GURL& url, 22 const GURL& url,
22 const std::string& results, 23 const std::string& results,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void set_results(const std::string& results) { 63 void set_results(const std::string& results) {
63 results_ = results; 64 results_ = results;
64 } 65 }
65 private: 66 private:
66 bool success_; 67 bool success_;
67 std::string results_; 68 std::string results_;
68 DISALLOW_COPY_AND_ASSIGN(MockURLFetcherFactory); 69 DISALLOW_COPY_AND_ASSIGN(MockURLFetcherFactory);
69 }; 70 };
70 71
71 #endif // GOOGLE_APIS_GAIA_MOCK_URL_FETCHER_FACTORY_H_ 72 #endif // GOOGLE_APIS_GAIA_MOCK_URL_FETCHER_FACTORY_H_
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_urls.h ('k') | google_apis/gaia/oauth2_access_token_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698