| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 registrar_.Add(this, | 110 registrar_.Add(this, |
| 111 chrome::NOTIFICATION_PROFILE_ADDED, | 111 chrome::NOTIFICATION_PROFILE_ADDED, |
| 112 content::NotificationService::AllSources()); | 112 content::NotificationService::AllSources()); |
| 113 | 113 |
| 114 OobeBaseTest::SetUpOnMainThread(); | 114 OobeBaseTest::SetUpOnMainThread(); |
| 115 } | 115 } |
| 116 | 116 |
| 117 void TearDownOnMainThread() override { | 117 void TearDownOnMainThread() override { |
| 118 RunUntilIdle(); | 118 RunUntilIdle(); |
| 119 EXPECT_TRUE(responses_.empty()); | 119 EXPECT_TRUE(responses_.empty()); |
| 120 STLDeleteElements(&responses_); | 120 base::STLDeleteElements(&responses_); |
| 121 OobeBaseTest::TearDownOnMainThread(); | 121 OobeBaseTest::TearDownOnMainThread(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void Observe(int type, | 124 void Observe(int type, |
| 125 const content::NotificationSource& source, | 125 const content::NotificationSource& source, |
| 126 const content::NotificationDetails& details) override { | 126 const content::NotificationDetails& details) override { |
| 127 ASSERT_EQ(chrome::NOTIFICATION_PROFILE_ADDED, type); | 127 ASSERT_EQ(chrome::NOTIFICATION_PROFILE_ADDED, type); |
| 128 ASSERT_FALSE(profile_added_); | 128 ASSERT_FALSE(profile_added_); |
| 129 profile_added_ = content::Source<Profile>(source).ptr(); | 129 profile_added_ = content::Source<Profile>(source).ptr(); |
| 130 } | 130 } |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 {3, kUsernameOtherDomain, true}, | 331 {3, kUsernameOtherDomain, true}, |
| 332 {4, kUsernameOtherDomain, true}, | 332 {4, kUsernameOtherDomain, true}, |
| 333 {5, kUsernameOtherDomain, true}, | 333 {5, kUsernameOtherDomain, true}, |
| 334 }; | 334 }; |
| 335 | 335 |
| 336 INSTANTIATE_TEST_CASE_P(BlockingLoginTestInstance, | 336 INSTANTIATE_TEST_CASE_P(BlockingLoginTestInstance, |
| 337 BlockingLoginTest, | 337 BlockingLoginTest, |
| 338 testing::ValuesIn(kBlockinLoginTestCases)); | 338 testing::ValuesIn(kBlockinLoginTestCases)); |
| 339 | 339 |
| 340 } // namespace chromeos | 340 } // namespace chromeos |
| OLD | NEW |