| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/chromeos/name_value_pairs_parser.h" | 5 #include "chrome/browser/chromeos/name_value_pairs_parser.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 "\"keyboard_layout\"=\"mozc-jp\"\n" }; | 55 "\"keyboard_layout\"=\"mozc-jp\"\n" }; |
| 56 EXPECT_TRUE(parser.ParseNameValuePairsFromTool( | 56 EXPECT_TRUE(parser.ParseNameValuePairsFromTool( |
| 57 arraysize(command5), command5, "=", "\n")); | 57 arraysize(command5), command5, "=", "\n")); |
| 58 ASSERT_EQ(3U, map.size()); | 58 ASSERT_EQ(3U, map.size()); |
| 59 EXPECT_EQ("ja", map["initial_locale"]); | 59 EXPECT_EQ("ja", map["initial_locale"]); |
| 60 EXPECT_EQ("Asia/Tokyo", map["initial_timezone"]); | 60 EXPECT_EQ("Asia/Tokyo", map["initial_timezone"]); |
| 61 EXPECT_EQ("mozc-jp", map["keyboard_layout"]); | 61 EXPECT_EQ("mozc-jp", map["keyboard_layout"]); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace chromeos | 64 } // namespace chromeos |
| OLD | NEW |