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

Side by Side Diff: ios/web/navigation/nscoder_util_unittest.mm

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « ios/web/navigation/nscoder_util.mm ('k') | ios/web/net/cert_store_impl.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #import <Foundation/Foundation.h> 5 #import <Foundation/Foundation.h>
6 #include <stddef.h>
6 7
7 #include "base/basictypes.h"
8 #include "base/mac/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
9 #include "base/macros.h"
9 #include "ios/web/navigation/nscoder_util.h" 10 #include "ios/web/navigation/nscoder_util.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 #include "testing/platform_test.h" 12 #include "testing/platform_test.h"
12 13
13 namespace web { 14 namespace web {
14 namespace { 15 namespace {
15 16
16 typedef PlatformTest NSCoderStdStringTest; 17 typedef PlatformTest NSCoderStdStringTest;
17 18
18 const char* testStrings[] = { 19 const char* testStrings[] = {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 51
51 base::scoped_nsobject<NSKeyedUnarchiver> unarchiver( 52 base::scoped_nsobject<NSKeyedUnarchiver> unarchiver(
52 [[NSKeyedUnarchiver alloc] initForReadingWithData:data]); 53 [[NSKeyedUnarchiver alloc] initForReadingWithData:data]);
53 const std::string decoded = nscoder_util::DecodeString(unarchiver, @"test"); 54 const std::string decoded = nscoder_util::DecodeString(unarchiver, @"test");
54 55
55 EXPECT_EQ(decoded, ""); 56 EXPECT_EQ(decoded, "");
56 } 57 }
57 58
58 } // namespace 59 } // namespace
59 } // namespace web 60 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/navigation/nscoder_util.mm ('k') | ios/web/net/cert_store_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698