| 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 | 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 Loading... |
| 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 |
| OLD | NEW |