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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. 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/string_util.h" 7 #include "base/string_util.h"
8 #include "base/test/test_timeouts.h" 8 #include "base/test/test_timeouts.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/autofill/autofill_download.h" 10 #include "chrome/browser/autofill/autofill_download.h"
11 #include "chrome/browser/autofill/autofill_field.h" 11 #include "chrome/browser/autofill/autofill_field.h"
12 #include "chrome/browser/autofill/autofill_metrics.h" 12 #include "chrome/browser/autofill/autofill_metrics.h"
13 #include "chrome/browser/autofill/autofill_type.h" 13 #include "chrome/browser/autofill/autofill_type.h"
14 #include "chrome/browser/autofill/form_structure.h" 14 #include "chrome/browser/autofill/form_structure.h"
15 #include "chrome/test/base/test_url_request_context_getter.h" 15 #include "chrome/test/base/test_url_request_context_getter.h"
16 #include "chrome/test/base/testing_browser_process.h" 16 #include "chrome/test/base/testing_browser_process.h"
17 #include "chrome/test/base/testing_profile.h" 17 #include "chrome/test/base/testing_profile.h"
18 #include "content/test/test_browser_thread.h" 18 #include "content/test/test_browser_thread.h"
19 #include "content/test/test_url_fetcher_factory.h" 19 #include "content/test/test_url_fetcher_factory.h"
20 #include "net/url_request/url_request_status.h" 20 #include "net/url_request/url_request_status.h"
21 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h"
24 #include "webkit/glue/form_data.h" 24 #include "webkit/glue/form_data.h"
25 25
26 using content::BrowserThread;
26 using webkit_glue::FormData; 27 using webkit_glue::FormData;
27 using webkit_glue::FormField; 28 using webkit_glue::FormField;
28 using WebKit::WebInputElement; 29 using WebKit::WebInputElement;
29 30
30 namespace { 31 namespace {
31 32
32 class MockAutofillMetrics : public AutofillMetrics { 33 class MockAutofillMetrics : public AutofillMetrics {
33 public: 34 public:
34 MockAutofillMetrics() {} 35 MockAutofillMetrics() {}
35 MOCK_CONST_METHOD1(LogServerQueryMetric, void(ServerQueryMetric metric)); 36 MOCK_CONST_METHOD1(LogServerQueryMetric, void(ServerQueryMetric metric));
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 mock_metric_logger)); 503 mock_metric_logger));
503 // No responses yet 504 // No responses yet
504 EXPECT_EQ(static_cast<size_t>(0), responses_.size()); 505 EXPECT_EQ(static_cast<size_t>(0), responses_.size());
505 506
506 fetcher = factory.GetFetcherByID(3); 507 fetcher = factory.GetFetcherByID(3);
507 ASSERT_TRUE(fetcher); 508 ASSERT_TRUE(fetcher);
508 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); 509 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0]));
509 ASSERT_EQ(static_cast<size_t>(1), responses_.size()); 510 ASSERT_EQ(static_cast<size_t>(1), responses_.size());
510 EXPECT_EQ(responses[0], responses_.front().response); 511 EXPECT_EQ(responses[0], responses_.front().response);
511 } 512 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_country.cc ('k') | chrome/browser/autofill/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698