| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/string_piece.h" | 9 #include "base/strings/string_piece.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "ui/base/resource/data_pack.h" | 11 #include "ui/base/resource/data_pack.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 | 14 |
| 15 class DataPackTest | 15 class DataPackTest |
| 16 : public testing::TestWithParam<DataPack::TextEncodingType> { | 16 : public testing::TestWithParam<DataPack::TextEncodingType> { |
| 17 public: | 17 public: |
| 18 DataPackTest() {} | 18 DataPackTest() {} |
| 19 }; | 19 }; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 EXPECT_EQ(two, data); | 141 EXPECT_EQ(two, data); |
| 142 ASSERT_TRUE(pack.GetStringPiece(3, &data)); | 142 ASSERT_TRUE(pack.GetStringPiece(3, &data)); |
| 143 EXPECT_EQ(three, data); | 143 EXPECT_EQ(three, data); |
| 144 ASSERT_TRUE(pack.GetStringPiece(4, &data)); | 144 ASSERT_TRUE(pack.GetStringPiece(4, &data)); |
| 145 EXPECT_EQ(four, data); | 145 EXPECT_EQ(four, data); |
| 146 ASSERT_TRUE(pack.GetStringPiece(15, &data)); | 146 ASSERT_TRUE(pack.GetStringPiece(15, &data)); |
| 147 EXPECT_EQ(fifteen, data); | 147 EXPECT_EQ(fifteen, data); |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace ui | 150 } // namespace ui |
| OLD | NEW |