| OLD | NEW |
| 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 #include <stddef.h> |
| 7 | 7 |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #import "base/mac/scoped_nsobject.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ios/web/navigation/nscoder_util.h" | 10 #import "ios/web/navigation/nscoder_util.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "testing/platform_test.h" | 12 #include "testing/platform_test.h" |
| 13 | 13 |
| 14 namespace web { | 14 namespace web { |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 typedef PlatformTest NSCoderStdStringTest; | 17 typedef PlatformTest NSCoderStdStringTest; |
| 18 | 18 |
| 19 const char* testStrings[] = { | 19 const char* testStrings[] = { |
| 20 "Arf", | 20 "Arf", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 base::scoped_nsobject<NSKeyedUnarchiver> unarchiver( | 52 base::scoped_nsobject<NSKeyedUnarchiver> unarchiver( |
| 53 [[NSKeyedUnarchiver alloc] initForReadingWithData:data]); | 53 [[NSKeyedUnarchiver alloc] initForReadingWithData:data]); |
| 54 const std::string decoded = nscoder_util::DecodeString(unarchiver, @"test"); | 54 const std::string decoded = nscoder_util::DecodeString(unarchiver, @"test"); |
| 55 | 55 |
| 56 EXPECT_EQ(decoded, ""); | 56 EXPECT_EQ(decoded, ""); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace | 59 } // namespace |
| 60 } // namespace web | 60 } // namespace web |
| OLD | NEW |