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

Side by Side Diff: chrome/browser/webdata/web_data_service_unittest.cc

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/scoped_temp_dir.h" 13 #include "base/scoped_temp_dir.h"
14 #include "base/stl_util.h" 14 #include "base/stl_util.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "base/synchronization/waitable_event.h" 17 #include "base/synchronization/waitable_event.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 "chrome/browser/autofill/autofill_profile.h" 20 #include "chrome/browser/autofill/autofill_profile.h"
21 #include "chrome/browser/autofill/credit_card.h" 21 #include "chrome/browser/autofill/credit_card.h"
22 #include "chrome/browser/webdata/autofill_change.h" 22 #include "chrome/browser/webdata/autofill_change.h"
23 #include "chrome/browser/webdata/autofill_entry.h" 23 #include "chrome/browser/webdata/autofill_entry.h"
24 #include "chrome/browser/webdata/web_data_service.h" 24 #include "chrome/browser/webdata/web_data_service.h"
25 #include "chrome/browser/webdata/web_data_service_test_util.h" 25 #include "chrome/browser/webdata/web_data_service_test_util.h"
26 #include "chrome/browser/webdata/web_intents_table.h" 26 #include "chrome/browser/webdata/web_intents_table.h"
27 #include "chrome/common/chrome_notification_types.h" 27 #include "chrome/common/chrome_notification_types.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/test/base/testing_browser_process_test.h"
30 #include "chrome/test/base/thread_observer_helper.h" 31 #include "chrome/test/base/thread_observer_helper.h"
31 #include "chrome/test/testing_browser_process_test.h"
32 #include "content/browser/browser_thread.h" 32 #include "content/browser/browser_thread.h"
33 #include "content/common/notification_details.h" 33 #include "content/common/notification_details.h"
34 #include "content/common/notification_service.h" 34 #include "content/common/notification_service.h"
35 #include "testing/gmock/include/gmock/gmock.h" 35 #include "testing/gmock/include/gmock/gmock.h"
36 #include "testing/gtest/include/gtest/gtest.h" 36 #include "testing/gtest/include/gtest/gtest.h"
37 #include "webkit/glue/form_field.h" 37 #include "webkit/glue/form_field.h"
38 38
39 using base::Time; 39 using base::Time;
40 using base::TimeDelta; 40 using base::TimeDelta;
41 using base::WaitableEvent; 41 using base::WaitableEvent;
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 wds_->GetWebIntents(ASCIIToUTF16("share"), &consumer); 631 wds_->GetWebIntents(ASCIIToUTF16("share"), &consumer);
632 WebIntentsConsumer::WaitUntilCalled(); 632 WebIntentsConsumer::WaitUntilCalled();
633 ASSERT_EQ(1U, consumer.intents.size()); 633 ASSERT_EQ(1U, consumer.intents.size());
634 634
635 intent.type = ASCIIToUTF16("video/*"); 635 intent.type = ASCIIToUTF16("video/*");
636 EXPECT_EQ(intent.service_url, consumer.intents[0].service_url); 636 EXPECT_EQ(intent.service_url, consumer.intents[0].service_url);
637 EXPECT_EQ(intent.action, consumer.intents[0].action); 637 EXPECT_EQ(intent.action, consumer.intents[0].action);
638 EXPECT_EQ(intent.type, consumer.intents[0].type); 638 EXPECT_EQ(intent.type, consumer.intents[0].type);
639 } 639 }
640 640
OLDNEW
« no previous file with comments | « chrome/browser/webdata/autofill_table_unittest.cc ('k') | chrome/browser/webdata/web_database_migration_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698