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

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

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (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
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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/stl_util-inl.h" 6 #include "base/stl_util-inl.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/scoped_temp_dir.h" 8 #include "base/scoped_temp_dir.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "chrome/browser/password_manager/password_store_change.h" 12 #include "chrome/browser/password_manager/password_store_change.h"
13 #include "chrome/browser/password_manager/password_store_default.h" 13 #include "chrome/browser/password_manager/password_store_default.h"
14 #include "chrome/browser/password_manager/password_form_data.h" 14 #include "chrome/browser/password_manager/password_form_data.h"
15 #include "chrome/browser/prefs/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/browser/webdata/web_data_service.h" 16 #include "chrome/browser/webdata/web_data_service.h"
17 #include "chrome/common/notification_details.h" 17 #include "chrome/common/notification_details.h"
18 #include "chrome/common/notification_observer_mock.h" 18 #include "chrome/common/notification_observer_mock.h"
19 #include "chrome/common/notification_registrar.h" 19 #include "chrome/common/notification_registrar.h"
20 #include "chrome/common/notification_source.h" 20 #include "chrome/common/notification_source.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 expected_delete_changes))))); 503 expected_delete_changes)))));
504 504
505 // Deleting the login should trigger a notification. 505 // Deleting the login should trigger a notification.
506 store->RemoveLogin(*form); 506 store->RemoveLogin(*form);
507 507
508 // Wait for PasswordStore to send the notification. 508 // Wait for PasswordStore to send the notification.
509 BrowserThread::PostTask(BrowserThread::DB, FROM_HERE, 509 BrowserThread::PostTask(BrowserThread::DB, FROM_HERE,
510 new SignalingTask(&done)); 510 new SignalingTask(&done));
511 done.Wait(); 511 done.Wait();
512 } 512 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698