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

Side by Side Diff: chromeos/dbus/privet_daemon_manager_client_unittest.cc

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chromeos/dbus/privet_daemon_manager_client.h" 5 #include "chromeos/dbus/privet_daemon_manager_client.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
9 #include "dbus/message.h" 12 #include "dbus/message.h"
10 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
11 14
12 namespace chromeos { 15 namespace chromeos {
13 16
14 TEST(PrivetDaemonManagerClientTest, ReadPairingInfo) { 17 TEST(PrivetDaemonManagerClientTest, ReadPairingInfo) {
15 scoped_ptr<dbus::Response> message(dbus::Response::CreateEmpty()); 18 scoped_ptr<dbus::Response> message(dbus::Response::CreateEmpty());
16 dbus::MessageWriter writer(message.get()); 19 dbus::MessageWriter writer(message.get());
(...skipping 28 matching lines...) Expand all
45 EXPECT_TRUE(pairing_info.PopValueFromReader(&reader)); 48 EXPECT_TRUE(pairing_info.PopValueFromReader(&reader));
46 49
47 EXPECT_EQ( 50 EXPECT_EQ(
48 std::vector<uint8_t>(code_value, code_value + arraysize(code_value)), 51 std::vector<uint8_t>(code_value, code_value + arraysize(code_value)),
49 pairing_info.value().code()); 52 pairing_info.value().code());
50 EXPECT_EQ("1", pairing_info.value().mode()); 53 EXPECT_EQ("1", pairing_info.value().mode());
51 EXPECT_EQ("2", pairing_info.value().session_id()); 54 EXPECT_EQ("2", pairing_info.value().session_id());
52 } 55 }
53 56
54 } // namespace chromeos 57 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/privet_daemon_manager_client.cc ('k') | chromeos/dbus/services/console_service_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698