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

Side by Side Diff: google_apis/gaia/oauth2_token_service_unittest.cc

Issue 1548673002: Switch to standard integer types in google_apis/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stddef.h>
6
5 #include <string> 7 #include <string>
6 8
9 #include "base/macros.h"
7 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 11 #include "base/run_loop.h"
9 #include "google_apis/gaia/fake_oauth2_token_service_delegate.h" 12 #include "google_apis/gaia/fake_oauth2_token_service_delegate.h"
10 #include "google_apis/gaia/gaia_constants.h" 13 #include "google_apis/gaia/gaia_constants.h"
11 #include "google_apis/gaia/google_service_auth_error.h" 14 #include "google_apis/gaia/google_service_auth_error.h"
12 #include "google_apis/gaia/oauth2_access_token_consumer.h" 15 #include "google_apis/gaia/oauth2_access_token_consumer.h"
13 #include "google_apis/gaia/oauth2_access_token_fetcher_impl.h" 16 #include "google_apis/gaia/oauth2_access_token_fetcher_impl.h"
14 #include "google_apis/gaia/oauth2_token_service.h" 17 #include "google_apis/gaia/oauth2_token_service.h"
15 #include "google_apis/gaia/oauth2_token_service_test_util.h" 18 #include "google_apis/gaia/oauth2_token_service_test_util.h"
16 #include "net/http/http_status_code.h" 19 #include "net/http/http_status_code.h"
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 fetcher = factory_.GetFetcherByID(0); 671 fetcher = factory_.GetFetcherByID(0);
669 // ASSERT_TRUE(fetcher); 672 // ASSERT_TRUE(fetcher);
670 fetcher->set_response_code(net::HTTP_OK); 673 fetcher->set_response_code(net::HTTP_OK);
671 fetcher->SetResponseString(GetValidTokenResponse("another token", 3600)); 674 fetcher->SetResponseString(GetValidTokenResponse("another token", 3600));
672 fetcher->delegate()->OnURLFetchComplete(fetcher); 675 fetcher->delegate()->OnURLFetchComplete(fetcher);
673 EXPECT_EQ(2, consumer_.number_of_successful_tokens_); 676 EXPECT_EQ(2, consumer_.number_of_successful_tokens_);
674 EXPECT_EQ(0, consumer_.number_of_errors_); 677 EXPECT_EQ(0, consumer_.number_of_errors_);
675 EXPECT_EQ("another token", consumer_.last_token_); 678 EXPECT_EQ("another token", consumer_.last_token_);
676 EXPECT_EQ(1, (int)oauth2_service_->token_cache_.size()); 679 EXPECT_EQ(1, (int)oauth2_service_->token_cache_.size());
677 } 680 }
OLDNEW
« no previous file with comments | « google_apis/gaia/oauth2_token_service_request.cc ('k') | google_apis/gaia/oauth_request_signer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698