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

Side by Side Diff: chrome/browser/chromeos/login/auth/mock_url_fetchers.cc

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 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/chromeos/login/mock_url_fetchers.h" 5 #include "chrome/browser/chromeos/login/auth/mock_url_fetchers.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "net/http/http_status_code.h" 12 #include "net/http/http_status_code.h"
13 #include "net/url_request/url_fetcher.h" 13 #include "net/url_request/url_fetcher.h"
14 #include "net/url_request/url_fetcher_delegate.h" 14 #include "net/url_request/url_fetcher_delegate.h"
15 #include "net/url_request/url_request_status.h" 15 #include "net/url_request/url_request_status.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 VLOG(1) << upload_data(); 163 VLOG(1) << upload_data();
164 if (upload_data().find("HOSTED") == std::string::npos) { 164 if (upload_data().find("HOSTED") == std::string::npos) {
165 VLOG(1) << "HostedFetcher failing request"; 165 VLOG(1) << "HostedFetcher failing request";
166 set_response_code(net::HTTP_FORBIDDEN); 166 set_response_code(net::HTTP_FORBIDDEN);
167 SetResponseString("Error=BadAuthentication"); 167 SetResponseString("Error=BadAuthentication");
168 } 168 }
169 delegate()->OnURLFetchComplete(this); 169 delegate()->OnURLFetchComplete(this);
170 } 170 }
171 171
172 } // namespace chromeos 172 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/auth/mock_url_fetchers.h ('k') | chrome/browser/chromeos/login/auth/mount_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698