| 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 "components/signin/core/browser/signin_error_controller.h" | 5 #include "components/signin/core/browser/signin_error_controller.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <functional> | 9 #include <functional> |
| 8 | 10 |
| 11 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 10 #include "components/signin/core/browser/fake_auth_status_provider.h" | 13 #include "components/signin/core/browser/fake_auth_status_provider.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 15 |
| 13 static const char kTestAccountId[] = "testuser@test.com"; | 16 static const char kTestAccountId[] = "testuser@test.com"; |
| 14 static const char kOtherTestAccountId[] = "otheruser@test.com"; | 17 static const char kOtherTestAccountId[] = "otheruser@test.com"; |
| 15 | 18 |
| 16 class SigninErrorControllerTest : public testing::Test { | 19 class SigninErrorControllerTest : public testing::Test { |
| 17 public: | 20 public: |
| 18 void SetUp() override { | 21 void SetUp() override { |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 GoogleServiceAuthError::NONE)); | 251 GoogleServiceAuthError::NONE)); |
| 249 ASSERT_EQ(GoogleServiceAuthError::UNEXPECTED_SERVICE_RESPONSE, | 252 ASSERT_EQ(GoogleServiceAuthError::UNEXPECTED_SERVICE_RESPONSE, |
| 250 error_controller_->auth_error().state()); | 253 error_controller_->auth_error().state()); |
| 251 ASSERT_STREQ(kTestAccountId, | 254 ASSERT_STREQ(kTestAccountId, |
| 252 error_controller_->error_account_id().c_str()); | 255 error_controller_->error_account_id().c_str()); |
| 253 | 256 |
| 254 fake_provider0.reset(); | 257 fake_provider0.reset(); |
| 255 fake_provider1.reset(); | 258 fake_provider1.reset(); |
| 256 ASSERT_FALSE(error_controller_->HasError()); | 259 ASSERT_FALSE(error_controller_->HasError()); |
| 257 } | 260 } |
| OLD | NEW |