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

Side by Side Diff: chrome\browser\sync\glue\http_bridge_unittest.cc

Issue 159728: Add browser/sync to the repository. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome\browser\sync\glue\http_bridge.cc ('k') | chrome\browser\sync\glue\model_associator.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifdef CHROME_PERSONALIZATION 4 #ifdef CHROME_PERSONALIZATION
5 5
6 #include "base/thread.h" 6 #include "base/thread.h"
7 #include "chrome/browser/sync/glue/http_bridge.h" 7 #include "chrome/browser/sync/glue/http_bridge.h"
8 #include "net/url_request/url_request_unittest.h" 8 #include "net/url_request/url_request_unittest.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // seems to be surprising the TestServer, because it isn't echoing the headers 158 // seems to be surprising the TestServer, because it isn't echoing the headers
159 // properly. 159 // properly.
160 #if FIXED_SYNCER_BACKEND_COOKIE_PARSING 160 #if FIXED_SYNCER_BACKEND_COOKIE_PARSING
161 EXPECT_NE(std::string::npos, response.find("Cookie: foo=bar; baz=boo")); 161 EXPECT_NE(std::string::npos, response.find("Cookie: foo=bar; baz=boo"));
162 EXPECT_NE(std::string::npos, response.find("User-Agent: bob")); 162 EXPECT_NE(std::string::npos, response.find("User-Agent: bob"));
163 #endif 163 #endif
164 EXPECT_NE(std::string::npos, response.find(test_payload.c_str())); 164 EXPECT_NE(std::string::npos, response.find(test_payload.c_str()));
165 } 165 }
166 166
167 #endif // CHROME_PERSONALIZATION 167 #endif // CHROME_PERSONALIZATION
OLDNEW
« no previous file with comments | « chrome\browser\sync\glue\http_bridge.cc ('k') | chrome\browser\sync\glue\model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698