OLD | NEW |
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 "components/autofill/core/browser/autofill_metrics.h" | 5 #include "components/autofill/core/browser/autofill_metrics.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "components/autofill/core/common/form_data.h" | 26 #include "components/autofill/core/common/form_data.h" |
27 #include "components/autofill/core/common/form_field_data.h" | 27 #include "components/autofill/core/common/form_field_data.h" |
28 #include "components/autofill/core/common/forms_seen_state.h" | 28 #include "components/autofill/core/common/forms_seen_state.h" |
29 #include "components/webdata/common/web_data_results.h" | 29 #include "components/webdata/common/web_data_results.h" |
30 #include "content/public/test/test_utils.h" | 30 #include "content/public/test/test_utils.h" |
31 #include "testing/gmock/include/gmock/gmock.h" | 31 #include "testing/gmock/include/gmock/gmock.h" |
32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
33 #include "ui/gfx/rect.h" | 33 #include "ui/gfx/rect.h" |
34 #include "url/gurl.h" | 34 #include "url/gurl.h" |
35 | 35 |
| 36 using base::ASCIIToUTF16; |
36 using base::TimeDelta; | 37 using base::TimeDelta; |
37 using base::TimeTicks; | 38 using base::TimeTicks; |
38 using testing::_; | 39 using testing::_; |
39 using testing::AnyNumber; | 40 using testing::AnyNumber; |
40 using testing::Mock; | 41 using testing::Mock; |
41 | 42 |
42 namespace autofill { | 43 namespace autofill { |
43 | 44 |
44 namespace { | 45 namespace { |
45 | 46 |
(...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1553 TimeTicks::FromInternalValue(5)); | 1554 TimeTicks::FromInternalValue(5)); |
1554 autofill_manager_->OnTextFieldDidChange(form, form.fields.front(), | 1555 autofill_manager_->OnTextFieldDidChange(form, form.fields.front(), |
1555 TimeTicks::FromInternalValue(3)); | 1556 TimeTicks::FromInternalValue(3)); |
1556 autofill_manager_->FormSubmitted(form, TimeTicks::FromInternalValue(17)); | 1557 autofill_manager_->FormSubmitted(form, TimeTicks::FromInternalValue(17)); |
1557 autofill_manager_->Reset(); | 1558 autofill_manager_->Reset(); |
1558 Mock::VerifyAndClearExpectations(autofill_manager_->metric_logger()); | 1559 Mock::VerifyAndClearExpectations(autofill_manager_->metric_logger()); |
1559 } | 1560 } |
1560 } | 1561 } |
1561 | 1562 |
1562 } // namespace autofill | 1563 } // namespace autofill |
OLD | NEW |