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

Side by Side Diff: chrome/browser/password_manager/password_manager_unittest.cc

Issue 6335001: Cleanup: Remove unneeded chrome/browser/prefs/pref_service.h usage.... (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 | « chrome/browser/page_info_model.cc ('k') | chrome/browser/plugin_service.cc » ('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>
6
5 #include "base/message_loop.h" 7 #include "base/message_loop.h"
6 #include "base/string_util.h" 8 #include "base/string_util.h"
7 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/browser_thread.h" 10 #include "chrome/browser/browser_thread.h"
9 #include "chrome/browser/password_manager/password_manager.h" 11 #include "chrome/browser/password_manager/password_manager.h"
10 #include "chrome/browser/password_manager/password_manager_delegate.h" 12 #include "chrome/browser/password_manager/password_manager_delegate.h"
11 #include "chrome/browser/password_manager/password_store.h" 13 #include "chrome/browser/password_manager/password_store.h"
12 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
14 #include "chrome/test/testing_profile.h" 15 #include "chrome/test/testing_profile.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
17 18
18 using webkit_glue::PasswordForm; 19 using webkit_glue::PasswordForm;
19 using testing::_; 20 using testing::_;
20 using testing::DoAll; 21 using testing::DoAll;
21 using ::testing::Exactly; 22 using ::testing::Exactly;
22 using ::testing::WithArg; 23 using ::testing::WithArg;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 EXPECT_CALL(*store_, GetLogins(_,_)) 267 EXPECT_CALL(*store_, GetLogins(_,_))
267 .WillRepeatedly(DoAll(WithArg<1>(InvokeConsumer(0, result)), Return(0))); 268 .WillRepeatedly(DoAll(WithArg<1>(InvokeConsumer(0, result)), Return(0)));
268 std::vector<PasswordForm> observed; 269 std::vector<PasswordForm> observed;
269 PasswordForm form(MakeSimpleForm()); 270 PasswordForm form(MakeSimpleForm());
270 observed.push_back(form); 271 observed.push_back(form);
271 manager()->PasswordFormsFound(observed); // The initial load. 272 manager()->PasswordFormsFound(observed); // The initial load.
272 // PasswordFormsVisible is not called. 273 // PasswordFormsVisible is not called.
273 274
274 manager()->DidStopLoading(); 275 manager()->DidStopLoading();
275 } 276 }
OLDNEW
« no previous file with comments | « chrome/browser/page_info_model.cc ('k') | chrome/browser/plugin_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698