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

Side by Side Diff: chrome/browser/webdata/web_data_service_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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/scoped_vector.h" 14 #include "base/scoped_vector.h"
15 #include "base/stl_util-inl.h" 15 #include "base/stl_util-inl.h"
16 #include "base/string16.h" 16 #include "base/string16.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "base/utf_string_conversions.h" 19 #include "base/utf_string_conversions.h"
20 #include "base/waitable_event.h" 20 #include "base/synchronization/waitable_event.h"
21 #include "chrome/browser/autofill/autofill_profile.h" 21 #include "chrome/browser/autofill/autofill_profile.h"
22 #include "chrome/browser/autofill/credit_card.h" 22 #include "chrome/browser/autofill/credit_card.h"
23 #include "chrome/browser/browser_thread.h" 23 #include "chrome/browser/browser_thread.h"
24 #include "chrome/browser/webdata/autofill_change.h" 24 #include "chrome/browser/webdata/autofill_change.h"
25 #include "chrome/browser/webdata/autofill_entry.h" 25 #include "chrome/browser/webdata/autofill_entry.h"
26 #include "chrome/browser/webdata/web_data_service.h" 26 #include "chrome/browser/webdata/web_data_service.h"
27 #include "chrome/browser/webdata/web_data_service_test_util.h" 27 #include "chrome/browser/webdata/web_data_service_test_util.h"
28 #include "chrome/common/chrome_paths.h" 28 #include "chrome/common/chrome_paths.h"
29 #include "chrome/common/guid.h" 29 #include "chrome/common/guid.h"
30 #include "chrome/common/notification_details.h" 30 #include "chrome/common/notification_details.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer2; 538 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer2;
539 WebDataService::Handle handle2 = wds_->GetCreditCards(&consumer2); 539 WebDataService::Handle handle2 = wds_->GetCreditCards(&consumer2);
540 MessageLoop::current()->Run(); 540 MessageLoop::current()->Run();
541 EXPECT_EQ(handle2, consumer2.handle()); 541 EXPECT_EQ(handle2, consumer2.handle());
542 ASSERT_EQ(2U, consumer2.result().size()); 542 ASSERT_EQ(2U, consumer2.result().size());
543 EXPECT_NE(card1, *consumer2.result()[0]); 543 EXPECT_NE(card1, *consumer2.result()[0]);
544 EXPECT_EQ(card1_changed, *consumer2.result()[0]); 544 EXPECT_EQ(card1_changed, *consumer2.result()[0]);
545 EXPECT_EQ(card2, *consumer2.result()[1]); 545 EXPECT_EQ(card2, *consumer2.result()[1]);
546 STLDeleteElements(&consumer2.result()); 546 STLDeleteElements(&consumer2.result());
547 } 547 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/extensions_activity_monitor_unittest.cc ('k') | chrome/common/child_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698