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

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

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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
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 "base/string_util.h" 5 #include "base/string_util.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "chrome/browser/password_manager/password_manager.h" 7 #include "chrome/browser/password_manager/password_manager.h"
8 #include "chrome/browser/password_manager/password_manager_delegate.h" 8 #include "chrome/browser/password_manager/password_manager_delegate.h"
9 #include "chrome/browser/password_manager/password_store.h" 9 #include "chrome/browser/password_manager/password_store.h"
10 #include "chrome/browser/pref_service.h" 10 #include "chrome/browser/prefs/pref_service.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "chrome/test/testing_profile.h" 12 #include "chrome/test/testing_profile.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 15
16 using webkit_glue::PasswordForm; 16 using webkit_glue::PasswordForm;
17 using testing::_; 17 using testing::_;
18 using testing::DoAll; 18 using testing::DoAll;
19 using ::testing::Exactly; 19 using ::testing::Exactly;
20 using ::testing::WithArg; 20 using ::testing::WithArg;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 EXPECT_CALL(*store_, GetLogins(_,_)) 264 EXPECT_CALL(*store_, GetLogins(_,_))
265 .WillRepeatedly(DoAll(WithArg<1>(InvokeConsumer(0, result)), Return(0))); 265 .WillRepeatedly(DoAll(WithArg<1>(InvokeConsumer(0, result)), Return(0)));
266 std::vector<PasswordForm> observed; 266 std::vector<PasswordForm> observed;
267 PasswordForm form(MakeSimpleForm()); 267 PasswordForm form(MakeSimpleForm());
268 observed.push_back(form); 268 observed.push_back(form);
269 manager()->PasswordFormsFound(observed); // The initial load. 269 manager()->PasswordFormsFound(observed); // The initial load.
270 // PasswordFormsVisible is not called. 270 // PasswordFormsVisible is not called.
271 271
272 manager()->DidStopLoading(); 272 manager()->DidStopLoading();
273 } 273 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698