OLD | NEW |
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 "chrome/browser/chromeos/contacts/contact_manager.h" | 5 #include "chrome/browser/chromeos/contacts/contact_manager.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "chrome/test/base/testing_browser_process.h" | 9 #include "chrome/test/base/testing_browser_process.h" |
10 #include "chrome/test/base/testing_profile.h" | 10 #include "chrome/test/base/testing_profile.h" |
11 #include "chrome/test/base/testing_profile_manager.h" | 11 #include "chrome/test/base/testing_profile_manager.h" |
| 12 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/chromeos/contacts/contact.pb.h" | 13 #include "chrome/browser/chromeos/contacts/contact.pb.h" |
13 #include "chrome/browser/chromeos/contacts/contact_manager_observer.h" | 14 #include "chrome/browser/chromeos/contacts/contact_manager_observer.h" |
14 #include "chrome/browser/chromeos/contacts/contact_test_util.h" | 15 #include "chrome/browser/chromeos/contacts/contact_test_util.h" |
15 #include "chrome/browser/chromeos/contacts/fake_contact_store.h" | 16 #include "chrome/browser/chromeos/contacts/fake_contact_store.h" |
16 #include "chrome/common/chrome_notification_types.h" | |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
19 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
20 #include "content/public/browser/notification_source.h" | 20 #include "content/public/browser/notification_source.h" |
21 #include "content/public/test/test_browser_thread.h" | 21 #include "content/public/test/test_browser_thread.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 using content::BrowserThread; | 24 using content::BrowserThread; |
25 | 25 |
26 namespace contacts { | 26 namespace contacts { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 store_factory_->set_permit_store_creation(false); | 162 store_factory_->set_permit_store_creation(false); |
163 const std::string kProfileName = "test_profile"; | 163 const std::string kProfileName = "test_profile"; |
164 TestingProfile* profile = | 164 TestingProfile* profile = |
165 profile_manager_->CreateTestingProfile(kProfileName); | 165 profile_manager_->CreateTestingProfile(kProfileName); |
166 EXPECT_FALSE(store_factory_->GetContactStoreForProfile(profile)); | 166 EXPECT_FALSE(store_factory_->GetContactStoreForProfile(profile)); |
167 profile_manager_->DeleteTestingProfile(kProfileName); | 167 profile_manager_->DeleteTestingProfile(kProfileName); |
168 } | 168 } |
169 | 169 |
170 } // namespace test | 170 } // namespace test |
171 } // namespace contacts | 171 } // namespace contacts |
OLD | NEW |