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

Side by Side Diff: chrome/browser/autocomplete_history_manager_unittest.cc

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/autocomplete_history_manager.h" 11 #include "chrome/browser/autocomplete_history_manager.h"
12 #include "chrome/browser/webdata/web_data_service.h" 12 #include "chrome/browser/webdata/web_data_service.h"
13 #include "chrome/test/base/testing_browser_process.h"
14 #include "chrome/test/base/testing_browser_process_test.h"
13 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
14 #include "chrome/test/testing_browser_process.h"
15 #include "chrome/test/testing_browser_process_test.h"
16 #include "content/browser/renderer_host/test_render_view_host.h" 16 #include "content/browser/renderer_host/test_render_view_host.h"
17 #include "content/browser/tab_contents/test_tab_contents.h" 17 #include "content/browser/tab_contents/test_tab_contents.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "webkit/glue/form_data.h" 20 #include "webkit/glue/form_data.h"
21 21
22 using testing::_; 22 using testing::_;
23 using webkit_glue::FormData; 23 using webkit_glue::FormData;
24 24
25 class MockWebDataService : public WebDataService { 25 class MockWebDataService : public WebDataService {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 webkit_glue::FormField search_field; 125 webkit_glue::FormField search_field;
126 search_field.label = ASCIIToUTF16("Search"); 126 search_field.label = ASCIIToUTF16("Search");
127 search_field.name = ASCIIToUTF16("search"); 127 search_field.name = ASCIIToUTF16("search");
128 search_field.value = ASCIIToUTF16("my favorite query"); 128 search_field.value = ASCIIToUTF16("my favorite query");
129 search_field.form_control_type = ASCIIToUTF16("search"); 129 search_field.form_control_type = ASCIIToUTF16("search");
130 form.fields.push_back(search_field); 130 form.fields.push_back(search_field);
131 131
132 EXPECT_CALL(*(web_data_service_.get()), AddFormFields(_)).Times(1); 132 EXPECT_CALL(*(web_data_service_.get()), AddFormFields(_)).Times(1);
133 autocomplete_manager_->OnFormSubmitted(form); 133 autocomplete_manager_->OnFormSubmitted(form);
134 } 134 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/shortcuts_provider_unittest.cc ('k') | chrome/browser/autofill/address_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698