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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
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 29 matching lines...) Expand all Loading... |
40 #include "content/public/browser/notification_registrar.h" | 40 #include "content/public/browser/notification_registrar.h" |
41 #include "content/public/browser/notification_service.h" | 41 #include "content/public/browser/notification_service.h" |
42 #include "content/public/browser/render_view_host.h" | 42 #include "content/public/browser/render_view_host.h" |
43 #include "content/public/browser/web_contents.h" | 43 #include "content/public/browser/web_contents.h" |
44 #include "content/public/test/browser_test_utils.h" | 44 #include "content/public/test/browser_test_utils.h" |
45 #include "content/public/test/test_renderer_host.h" | 45 #include "content/public/test/test_renderer_host.h" |
46 #include "net/url_request/test_url_fetcher_factory.h" | 46 #include "net/url_request/test_url_fetcher_factory.h" |
47 #include "testing/gtest/include/gtest/gtest.h" | 47 #include "testing/gtest/include/gtest/gtest.h" |
48 #include "ui/base/keycodes/keyboard_codes.h" | 48 #include "ui/base/keycodes/keyboard_codes.h" |
49 | 49 |
50 using base::WideToUTF16; | |
51 using content::RenderViewHost; | 50 using content::RenderViewHost; |
52 using content::RenderViewHostTester; | 51 using content::RenderViewHostTester; |
53 using content::WebContents; | 52 using content::WebContents; |
54 | 53 |
55 static const char* kDataURIPrefix = "data:text/html;charset=utf-8,"; | 54 static const char* kDataURIPrefix = "data:text/html;charset=utf-8,"; |
56 static const char* kTestFormString = | 55 static const char* kTestFormString = |
57 "<form action=\"http://www.example.com/\" method=\"POST\">" | 56 "<form action=\"http://www.example.com/\" method=\"POST\">" |
58 "<label for=\"firstname\">First name:</label>" | 57 "<label for=\"firstname\">First name:</label>" |
59 " <input type=\"text\" id=\"firstname\"" | 58 " <input type=\"text\" id=\"firstname\"" |
60 " onFocus=\"domAutomationController.send(true)\"><br>" | 59 " onFocus=\"domAutomationController.send(true)\"><br>" |
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 // TODO(isherman): this looks redundant, consider removing. | 1672 // TODO(isherman): this looks redundant, consider removing. |
1674 // DISABLED: http://crbug.com/150084 | 1673 // DISABLED: http://crbug.com/150084 |
1675 IN_PROC_BROWSER_TEST_F(AutofillTest, | 1674 IN_PROC_BROWSER_TEST_F(AutofillTest, |
1676 DISABLED_MergeAggregatedDuplicatedProfiles) { | 1675 DISABLED_MergeAggregatedDuplicatedProfiles) { |
1677 int num_of_profiles = | 1676 int num_of_profiles = |
1678 AggregateProfilesIntoAutofillPrefs("dataset_no_address.txt"); | 1677 AggregateProfilesIntoAutofillPrefs("dataset_no_address.txt"); |
1679 | 1678 |
1680 ASSERT_GT(num_of_profiles, | 1679 ASSERT_GT(num_of_profiles, |
1681 static_cast<int>(personal_data_manager()->GetProfiles().size())); | 1680 static_cast<int>(personal_data_manager()->GetProfiles().size())); |
1682 } | 1681 } |
OLD | NEW |