| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 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/bind.h" |    5 #include "base/bind.h" | 
|    6 #include "base/message_loop.h" |    6 #include "base/message_loop.h" | 
|    7 #include "base/time.h" |    7 #include "base/time.h" | 
|    8 #include "base/utf_string_conversions.h" |    8 #include "base/utf_string_conversions.h" | 
|    9 #include "chrome/browser/autofill/autofill_metrics.h" |    9 #include "chrome/browser/autofill/autofill_metrics.h" | 
|   10 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |   10 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 
|   11 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |   11 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 
|   12 #include "chrome/browser/ui/browser.h" |   12 #include "chrome/browser/ui/browser.h" | 
|   13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |   13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 
|   14 #include "chrome/common/form_data.h" |  | 
|   15 #include "chrome/common/form_field_data.h" |  | 
|   16 #include "chrome/test/base/in_process_browser_test.h" |   14 #include "chrome/test/base/in_process_browser_test.h" | 
 |   15 #include "components/autofill/common/form_data.h" | 
 |   16 #include "components/autofill/common/form_field_data.h" | 
|   17 #include "content/public/test/test_utils.h" |   17 #include "content/public/test/test_utils.h" | 
|   18 #include "testing/gtest/include/gtest/gtest.h" |   18 #include "testing/gtest/include/gtest/gtest.h" | 
|   19  |   19  | 
|   20 namespace autofill { |   20 namespace autofill { | 
|   21  |   21  | 
|   22 namespace { |   22 namespace { | 
|   23  |   23  | 
|   24 void MockCallback(const FormStructure*) {} |   24 void MockCallback(const FormStructure*) {} | 
|   25  |   25  | 
|   26 class MockAutofillMetrics : public AutofillMetrics { |   26 class MockAutofillMetrics : public AutofillMetrics { | 
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  231     dialog_controller->view()->CancelForTesting(); |  231     dialog_controller->view()->CancelForTesting(); | 
|  232  |  232  | 
|  233     content::RunMessageLoop(); |  233     content::RunMessageLoop(); | 
|  234  |  234  | 
|  235     EXPECT_EQ(AutofillMetrics::AUTOCHECKOUT_FAILED, |  235     EXPECT_EQ(AutofillMetrics::AUTOCHECKOUT_FAILED, | 
|  236               metric_logger.autocheckout_status()); |  236               metric_logger.autocheckout_status()); | 
|  237   } |  237   } | 
|  238 } |  238 } | 
|  239  |  239  | 
|  240 }  // namespace autofill |  240 }  // namespace autofill | 
| OLD | NEW |