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

Side by Side Diff: google_apis/gcm/base/mcs_message_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
« no previous file with comments | « google_apis/gcm/base/mcs_message.cc ('k') | google_apis/gcm/base/mcs_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "google_apis/gcm/base/mcs_message.h" 5 #include "google_apis/gcm/base/mcs_message.h"
6 6
7 #include <stdint.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/test/test_simple_task_runner.h" 10 #include "base/test/test_simple_task_runner.h"
9 #include "base/thread_task_runner_handle.h" 11 #include "base/thread_task_runner_handle.h"
10 #include "google_apis/gcm/base/mcs_util.h" 12 #include "google_apis/gcm/base/mcs_util.h"
11 #include "google_apis/gcm/protocol/mcs.pb.h" 13 #include "google_apis/gcm/protocol/mcs.pb.h"
12 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
13 15
14 namespace gcm { 16 namespace gcm {
15 17
16 const uint64 kAndroidId = 12345; 18 const uint64_t kAndroidId = 12345;
17 const uint64 kSecret = 54321; 19 const uint64_t kSecret = 54321;
18 20
19 class MCSMessageTest : public testing::Test { 21 class MCSMessageTest : public testing::Test {
20 public: 22 public:
21 MCSMessageTest(); 23 MCSMessageTest();
22 ~MCSMessageTest() override; 24 ~MCSMessageTest() override;
23 25
24 private: 26 private:
25 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; 27 scoped_refptr<base::TestSimpleTaskRunner> task_runner_;
26 base::ThreadTaskRunnerHandle task_runner_handle_; 28 base::ThreadTaskRunnerHandle task_runner_handle_;
27 }; 29 };
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 EXPECT_EQ(login_request->ByteSize(), message.size()); 89 EXPECT_EQ(login_request->ByteSize(), message.size());
88 EXPECT_EQ(login_request->SerializeAsString(), message.SerializeAsString()); 90 EXPECT_EQ(login_request->SerializeAsString(), message.SerializeAsString());
89 EXPECT_EQ(login_request->SerializeAsString(), 91 EXPECT_EQ(login_request->SerializeAsString(),
90 message.GetProtobuf().SerializeAsString()); 92 message.GetProtobuf().SerializeAsString());
91 login_copy = message.CloneProtobuf(); 93 login_copy = message.CloneProtobuf();
92 EXPECT_EQ(login_request->SerializeAsString(), 94 EXPECT_EQ(login_request->SerializeAsString(),
93 login_copy->SerializeAsString()); 95 login_copy->SerializeAsString());
94 } 96 }
95 97
96 } // namespace gcm 98 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/gcm/base/mcs_message.cc ('k') | google_apis/gcm/base/mcs_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698