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

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

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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) 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/time.h" 10 #include "base/time.h"
11 #include "chrome/browser/password_manager/password_form_data.h" 11 #include "chrome/browser/password_manager/password_form_data.h"
12 #include "chrome/browser/password_manager/password_store_consumer.h" 12 #include "chrome/browser/password_manager/password_store_consumer.h"
13 #include "chrome/browser/password_manager/password_store_default.h" 13 #include "chrome/browser/password_manager/password_store_default.h"
14 #include "chrome/common/chrome_notification_types.h" 14 #include "chrome/common/chrome_notification_types.h"
15 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
16 #include "content/public/browser/notification_details.h" 16 #include "content/public/browser/notification_details.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 #include "content/public/browser/notification_source.h" 18 #include "content/public/browser/notification_source.h"
19 #include "content/public/test/mock_notification_observer.h" 19 #include "content/public/test/mock_notification_observer.h"
20 #include "content/public/test/test_browser_thread.h" 20 #include "content/public/test/test_browser_thread.h"
21 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 using base::WaitableEvent; 24 using base::WaitableEvent;
25 using content::BrowserThread; 25 using content::BrowserThread;
26 using testing::_; 26 using testing::_;
27 using testing::DoAll; 27 using testing::DoAll;
28 using testing::WithArg; 28 using testing::WithArg;
29 using webkit::forms::PasswordForm; 29 using content::PasswordForm;
30 30
31 namespace { 31 namespace {
32 32
33 class MockPasswordStoreConsumer : public PasswordStoreConsumer { 33 class MockPasswordStoreConsumer : public PasswordStoreConsumer {
34 public: 34 public:
35 MOCK_METHOD2(OnPasswordStoreRequestDone, 35 MOCK_METHOD2(OnPasswordStoreRequestDone,
36 void(CancelableRequestProvider::Handle, 36 void(CancelableRequestProvider::Handle,
37 const std::vector<PasswordForm*>&)); 37 const std::vector<PasswordForm*>&));
38 }; 38 };
39 39
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 .WillOnce(WithArg<1>(STLDeleteElements0())).RetiresOnSaturation(); 258 .WillOnce(WithArg<1>(STLDeleteElements0())).RetiresOnSaturation();
259 259
260 store->GetLogins(www_google, &consumer); 260 store->GetLogins(www_google, &consumer);
261 store->GetLogins(accounts_google, &consumer); 261 store->GetLogins(accounts_google, &consumer);
262 store->GetLogins(bar_example, &consumer); 262 store->GetLogins(bar_example, &consumer);
263 263
264 MessageLoop::current()->Run(); 264 MessageLoop::current()->Run();
265 265
266 STLDeleteElements(&all_forms); 266 STLDeleteElements(&all_forms);
267 } 267 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_mac_unittest.cc ('k') | chrome/browser/password_manager/password_store_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698