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

Side by Side Diff: google_apis/gcm/engine/unregistration_request_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 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 <stdint.h>
6
5 #include <map> 7 #include <map>
6 #include <string> 8 #include <string>
7 #include <vector> 9 #include <vector>
8 10
9 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_tokenizer.h" 12 #include "base/strings/string_tokenizer.h"
11 #include "google_apis/gcm/engine/gcm_request_test_base.h" 13 #include "google_apis/gcm/engine/gcm_request_test_base.h"
12 #include "google_apis/gcm/engine/gcm_unregistration_request_handler.h" 14 #include "google_apis/gcm/engine/gcm_unregistration_request_handler.h"
13 #include "google_apis/gcm/engine/instance_id_delete_token_request_handler.h" 15 #include "google_apis/gcm/engine/instance_id_delete_token_request_handler.h"
14 #include "google_apis/gcm/monitoring/fake_gcm_stats_recorder.h" 16 #include "google_apis/gcm/monitoring/fake_gcm_stats_recorder.h"
15 #include "net/base/load_flags.h" 17 #include "net/base/load_flags.h"
16 18
17 namespace gcm { 19 namespace gcm {
18 20
19 namespace { 21 namespace {
20 const int kMaxRetries = 2; 22 const int kMaxRetries = 2;
21 const uint64 kAndroidId = 42UL; 23 const uint64_t kAndroidId = 42UL;
22 const char kLoginHeader[] = "AidLogin"; 24 const char kLoginHeader[] = "AidLogin";
23 const char kAppId[] = "TestAppId"; 25 const char kAppId[] = "TestAppId";
24 const char kDeletedAppId[] = "deleted=TestAppId"; 26 const char kDeletedAppId[] = "deleted=TestAppId";
25 const char kDeletedToken[] = "token=SomeToken"; 27 const char kDeletedToken[] = "token=SomeToken";
26 const char kRegistrationURL[] = "http://foo.bar/register"; 28 const char kRegistrationURL[] = "http://foo.bar/register";
27 const uint64 kSecurityToken = 77UL; 29 const uint64_t kSecurityToken = 77UL;
28 const int kGCMVersion = 40; 30 const int kGCMVersion = 40;
29 const char kInstanceId[] = "IID1"; 31 const char kInstanceId[] = "IID1";
30 const char kDeveloperId[] = "Project1"; 32 const char kDeveloperId[] = "Project1";
31 const char kScope[] = "GCM"; 33 const char kScope[] = "GCM";
32 34
33 } // namespace 35 } // namespace
34 36
35 class UnregistrationRequestTest : public GCMRequestTestBase { 37 class UnregistrationRequestTest : public GCMRequestTestBase {
36 public: 38 public:
37 UnregistrationRequestTest(); 39 UnregistrationRequestTest();
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 request_->Start(); 457 request_->Start();
456 458
457 SetResponse(net::HTTP_OK, "Error=XXX"); 459 SetResponse(net::HTTP_OK, "Error=XXX");
458 CompleteFetch(); 460 CompleteFetch();
459 461
460 EXPECT_TRUE(callback_called_); 462 EXPECT_TRUE(callback_called_);
461 EXPECT_EQ(UnregistrationRequest::UNKNOWN_ERROR, status_); 463 EXPECT_EQ(UnregistrationRequest::UNKNOWN_ERROR, status_);
462 } 464 }
463 465
464 } // namespace gcm 466 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/unregistration_request.cc ('k') | google_apis/gcm/monitoring/fake_gcm_stats_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698