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

Side by Side Diff: chrome/browser/autofill/autofill_download_unittest.cc

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With this patchset, Chrome runs and exits normally on Linux. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <list> 5 #include <list>
6 6
7 #include "base/message_loop.h"
7 #include "base/string_util.h" 8 #include "base/string_util.h"
8 #include "base/test/test_timeouts.h" 9 #include "base/test/test_timeouts.h"
9 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/autofill/autofill_download.h" 11 #include "chrome/browser/autofill/autofill_download.h"
11 #include "chrome/browser/autofill/autofill_field.h" 12 #include "chrome/browser/autofill/autofill_field.h"
12 #include "chrome/browser/autofill/autofill_metrics.h" 13 #include "chrome/browser/autofill/autofill_metrics.h"
13 #include "chrome/browser/autofill/autofill_type.h" 14 #include "chrome/browser/autofill/autofill_type.h"
14 #include "chrome/browser/autofill/form_structure.h" 15 #include "chrome/browser/autofill/form_structure.h"
15 #include "chrome/test/base/test_url_request_context_getter.h" 16 #include "chrome/test/base/test_url_request_context_getter.h"
16 #include "chrome/test/base/testing_browser_process.h" 17 #include "chrome/test/base/testing_browser_process.h"
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 mock_metric_logger)); 501 mock_metric_logger));
501 // No responses yet 502 // No responses yet
502 EXPECT_EQ(static_cast<size_t>(0), responses_.size()); 503 EXPECT_EQ(static_cast<size_t>(0), responses_.size());
503 504
504 fetcher = factory.GetFetcherByID(3); 505 fetcher = factory.GetFetcherByID(3);
505 ASSERT_TRUE(fetcher); 506 ASSERT_TRUE(fetcher);
506 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); 507 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0]));
507 ASSERT_EQ(static_cast<size_t>(1), responses_.size()); 508 ASSERT_EQ(static_cast<size_t>(1), responses_.size());
508 EXPECT_EQ(responses[0], responses_.front().response); 509 EXPECT_EQ(responses[0], responses_.front().response);
509 } 510 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698