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

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

Issue 6290008: Move the TestSink for doing IPC tests from chrome/common into IPC and create ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 months 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/mock_render_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <vector> 5 #include <vector>
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "base/scoped_vector.h" 10 #include "base/scoped_vector.h"
11 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "base/stringprintf.h" 13 #include "base/stringprintf.h"
14 #include "base/tuple.h" 14 #include "base/tuple.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
16 #include "chrome/browser/autocomplete_history_manager.h" 16 #include "chrome/browser/autocomplete_history_manager.h"
17 #include "chrome/browser/autofill/autofill_common_test.h" 17 #include "chrome/browser/autofill/autofill_common_test.h"
18 #include "chrome/browser/autofill/autofill_manager.h" 18 #include "chrome/browser/autofill/autofill_manager.h"
19 #include "chrome/browser/autofill/autofill_profile.h" 19 #include "chrome/browser/autofill/autofill_profile.h"
20 #include "chrome/browser/autofill/credit_card.h" 20 #include "chrome/browser/autofill/credit_card.h"
21 #include "chrome/browser/autofill/personal_data_manager.h" 21 #include "chrome/browser/autofill/personal_data_manager.h"
22 #include "chrome/browser/prefs/pref_service.h" 22 #include "chrome/browser/prefs/pref_service.h"
23 #include "chrome/browser/profiles/profile.h" 23 #include "chrome/browser/profiles/profile.h"
24 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 24 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
25 #include "chrome/browser/tab_contents/test_tab_contents.h" 25 #include "chrome/browser/tab_contents/test_tab_contents.h"
26 #include "chrome/browser/ui/browser.h" 26 #include "chrome/browser/ui/browser.h"
27 #include "chrome/common/ipc_test_sink.h"
28 #include "chrome/common/pref_names.h" 27 #include "chrome/common/pref_names.h"
29 #include "chrome/common/render_messages.h" 28 #include "chrome/common/render_messages.h"
30 #include "chrome/test/testing_profile.h" 29 #include "chrome/test/testing_profile.h"
31 #include "googleurl/src/gurl.h" 30 #include "googleurl/src/gurl.h"
32 #include "grit/generated_resources.h" 31 #include "grit/generated_resources.h"
32 #include "ipc/ipc_test_sink.h"
33 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/include/gtest/gtest.h"
34 #include "webkit/glue/form_data.h" 34 #include "webkit/glue/form_data.h"
35 #include "webkit/glue/form_field.h" 35 #include "webkit/glue/form_field.h"
36 36
37 using webkit_glue::FormData; 37 using webkit_glue::FormData;
38 using webkit_glue::FormField; 38 using webkit_glue::FormField;
39 39
40 namespace { 40 namespace {
41 41
42 // The page ID sent to the AutoFillManager from the RenderView, used to send 42 // The page ID sent to the AutoFillManager from the RenderView, used to send
(...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 #else 1579 #else
1580 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( 1580 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean(
1581 prefs::kAutoFillAuxiliaryProfilesEnabled)); 1581 prefs::kAutoFillAuxiliaryProfilesEnabled));
1582 profile()->GetPrefs()->SetBoolean( 1582 profile()->GetPrefs()->SetBoolean(
1583 prefs::kAutoFillAuxiliaryProfilesEnabled, true); 1583 prefs::kAutoFillAuxiliaryProfilesEnabled, true);
1584 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); 1584 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled);
1585 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( 1585 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean(
1586 prefs::kAutoFillAuxiliaryProfilesEnabled)); 1586 prefs::kAutoFillAuxiliaryProfilesEnabled));
1587 #endif 1587 #endif
1588 } 1588 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698