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

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

Issue 6028009: Move base/thread.h to base/threading, fix up callers to use the new location.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/message_loop_proxy.h" 5 #include "base/message_loop_proxy.h"
6 #include "base/thread.h" 6 #include "base/threading/thread.h"
7 #include "chrome/browser/browser_thread.h" 7 #include "chrome/browser/browser_thread.h"
8 #include "chrome/browser/sync/glue/http_bridge.h" 8 #include "chrome/browser/sync/glue/http_bridge.h"
9 #include "chrome/common/net/test_url_fetcher_factory.h" 9 #include "chrome/common/net/test_url_fetcher_factory.h"
10 #include "net/url_request/url_request_unittest.h" 10 #include "net/url_request/url_request_unittest.h"
11 #include "net/test/test_server.h" 11 #include "net/test/test_server.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 using browser_sync::HttpBridge; 14 using browser_sync::HttpBridge;
15 15
16 namespace { 16 namespace {
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 int os_error = 0; 270 int os_error = 0;
271 int response_code = 0; 271 int response_code = 0;
272 bool success = http_bridge->MakeSynchronousPost(&os_error, &response_code); 272 bool success = http_bridge->MakeSynchronousPost(&os_error, &response_code);
273 EXPECT_TRUE(success); 273 EXPECT_TRUE(success);
274 EXPECT_EQ(200, response_code); 274 EXPECT_EQ(200, response_code);
275 EXPECT_EQ(0, os_error); 275 EXPECT_EQ(0, os_error);
276 276
277 EXPECT_EQ(http_bridge->GetResponseHeaderValue("Content-type"), "text/html"); 277 EXPECT_EQ(http_bridge->GetResponseHeaderValue("Content-type"), "text/html");
278 EXPECT_TRUE(http_bridge->GetResponseHeaderValue("invalid-header").empty()); 278 EXPECT_TRUE(http_bridge->GetResponseHeaderValue("invalid-header").empty());
279 } 279 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/database_model_worker_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698