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

Side by Side Diff: components/signin/core/browser/signin_error_controller_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_error_controller.h ('k') | components/signin/core/browser/signin_header_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698