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

Side by Side Diff: components/autofill/core/browser/autocomplete_history_manager_unittest.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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) 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 <vector> 5 #include <vector>
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/prefs/testing_pref_service.h" 8 #include "base/prefs/testing_pref_service.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
13 #include "chrome/browser/webdata/web_data_service_factory.h" 13 #include "chrome/browser/webdata/web_data_service_factory.h"
14 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 14 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
15 #include "chrome/test/base/testing_browser_process.h" 15 #include "chrome/test/base/testing_browser_process.h"
16 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
17 #include "components/autofill/browser/autocomplete_history_manager.h" 17 #include "components/autofill/core/browser/autocomplete_history_manager.h"
18 #include "components/autofill/browser/autofill_external_delegate.h" 18 #include "components/autofill/core/browser/autofill_external_delegate.h"
19 #include "components/autofill/browser/autofill_manager.h" 19 #include "components/autofill/core/browser/autofill_manager.h"
20 #include "components/autofill/browser/test_autofill_driver.h" 20 #include "components/autofill/core/browser/test_autofill_driver.h"
21 #include "components/autofill/browser/test_autofill_manager_delegate.h" 21 #include "components/autofill/core/browser/test_autofill_manager_delegate.h"
22 #include "components/autofill/browser/webdata/autofill_webdata_service.h" 22 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
23 #include "components/autofill/core/common/form_data.h" 23 #include "components/autofill/core/common/form_data.h"
24 #include "components/webdata/common/web_data_service_test_util.h" 24 #include "components/webdata/common/web_data_service_test_util.h"
25 #include "content/public/test/test_browser_thread.h" 25 #include "content/public/test/test_browser_thread.h"
26 #include "content/public/test/test_utils.h" 26 #include "content/public/test/test_utils.h"
27 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "ui/gfx/rect.h" 29 #include "ui/gfx/rect.h"
30 30
31 using content::WebContents; 31 using content::WebContents;
32 using testing::_; 32 using testing::_;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 MockAutofillExternalDelegate external_delegate(web_contents(), 249 MockAutofillExternalDelegate external_delegate(web_contents(),
250 autofill_manager.get()); 250 autofill_manager.get());
251 autocomplete_history_manager.SetExternalDelegate(&external_delegate); 251 autocomplete_history_manager.SetExternalDelegate(&external_delegate);
252 252
253 // Should trigger a call to OnSuggestionsReturned, verified by the mock. 253 // Should trigger a call to OnSuggestionsReturned, verified by the mock.
254 EXPECT_CALL(external_delegate, OnSuggestionsReturned(_, _, _, _, _)); 254 EXPECT_CALL(external_delegate, OnSuggestionsReturned(_, _, _, _, _));
255 autocomplete_history_manager.SendSuggestions(NULL); 255 autocomplete_history_manager.SendSuggestions(NULL);
256 } 256 }
257 257
258 } // namespace autofill 258 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autocomplete_history_manager.cc ('k') | components/autofill/core/browser/autofill-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698