| 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "base/prefs/testing_pref_service.h" | 6 #include "base/prefs/testing_pref_service.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/profiles/profile_info_cache.h" | 9 #include "chrome/browser/profiles/profile_info_cache.h" |
| 9 #include "chrome/browser/signin/signin_manager.h" | 10 #include "chrome/browser/signin/signin_manager.h" |
| 10 #include "chrome/browser/signin/signin_names_io_thread.h" | 11 #include "chrome/browser/signin/signin_names_io_thread.h" |
| 11 #include "chrome/common/chrome_notification_types.h" | |
| 12 #include "chrome/test/base/testing_browser_process.h" | 12 #include "chrome/test/base/testing_browser_process.h" |
| 13 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
| 14 #include "chrome/test/base/testing_profile_manager.h" | 14 #include "chrome/test/base/testing_profile_manager.h" |
| 15 #include "content/public/browser/notification_service.h" | 15 #include "content/public/browser/notification_service.h" |
| 16 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 SigninNamesOnIOThread signin_names; | 124 SigninNamesOnIOThread signin_names; |
| 125 | 125 |
| 126 const SigninNamesOnIOThread::EmailSet& emails = signin_names.GetEmails(); | 126 const SigninNamesOnIOThread::EmailSet& emails = signin_names.GetEmails(); |
| 127 ASSERT_EQ(2u, emails.size()); | 127 ASSERT_EQ(2u, emails.size()); |
| 128 ASSERT_EQ(1u, emails.count(email1)); | 128 ASSERT_EQ(1u, emails.count(email1)); |
| 129 ASSERT_EQ(1u, emails.count(email2)); | 129 ASSERT_EQ(1u, emails.count(email2)); |
| 130 | 130 |
| 131 signin_names.ReleaseResourcesOnUIThread(); | 131 signin_names.ReleaseResourcesOnUIThread(); |
| 132 } | 132 } |
| OLD | NEW |