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

Side by Side Diff: components/autofill/core/browser/autofill_download_unittest.cc

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/test/test_timeouts.h" 10 #include "base/test/test_timeouts.h"
11 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 #include "components/autofill/core/browser/autofill_download.h" 12 #include "components/autofill/core/browser/autofill_download.h"
13 #include "components/autofill/core/browser/autofill_field.h" 13 #include "components/autofill/core/browser/autofill_field.h"
14 #include "components/autofill/core/browser/autofill_metrics.h" 14 #include "components/autofill/core/browser/autofill_metrics.h"
15 #include "components/autofill/core/browser/autofill_type.h" 15 #include "components/autofill/core/browser/autofill_type.h"
16 #include "components/autofill/core/browser/form_structure.h" 16 #include "components/autofill/core/browser/form_structure.h"
17 #include "components/autofill/core/common/form_data.h" 17 #include "components/autofill/core/common/form_data.h"
18 #include "content/public/test/test_browser_thread_bundle.h" 18 #include "content/public/test/test_browser_thread_bundle.h"
19 #include "net/url_request/test_url_fetcher_factory.h" 19 #include "net/url_request/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/public/web/WebInputElement.h" 23 #include "third_party/WebKit/public/web/WebInputElement.h"
24 24
25 using WebKit::WebInputElement; 25 using blink::WebInputElement;
26 26
27 namespace autofill { 27 namespace autofill {
28 28
29 namespace { 29 namespace {
30 30
31 class MockAutofillMetrics : public AutofillMetrics { 31 class MockAutofillMetrics : public AutofillMetrics {
32 public: 32 public:
33 MockAutofillMetrics() {} 33 MockAutofillMetrics() {}
34 MOCK_CONST_METHOD1(LogServerQueryMetric, void(ServerQueryMetric metric)); 34 MOCK_CONST_METHOD1(LogServerQueryMetric, void(ServerQueryMetric metric));
35 35
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 EXPECT_EQ(static_cast<size_t>(0), responses_.size()); 482 EXPECT_EQ(static_cast<size_t>(0), responses_.size());
483 483
484 fetcher = factory.GetFetcherByID(3); 484 fetcher = factory.GetFetcherByID(3);
485 ASSERT_TRUE(fetcher); 485 ASSERT_TRUE(fetcher);
486 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); 486 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0]));
487 ASSERT_EQ(static_cast<size_t>(1), responses_.size()); 487 ASSERT_EQ(static_cast<size_t>(1), responses_.size());
488 EXPECT_EQ(responses[0], responses_.front().response); 488 EXPECT_EQ(responses[0], responses_.front().response);
489 } 489 }
490 490
491 } // namespace autofill 491 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698