OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/common/importer/firefox_importer_utils.h" | 5 #include "chrome/common/importer/firefox_importer_utils.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 struct GetPrefsJsValueCase { | 16 struct GetPrefsJsValueCase { |
17 std::string prefs_content; | 17 std::string prefs_content; |
18 std::string pref_name; | 18 std::string pref_name; |
19 std::string pref_value; | 19 std::string pref_value; |
20 } GetPrefsJsValueCases[] = { | 20 } GetPrefsJsValueCases[] = { |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 base::DictionaryValue default_second; | 151 base::DictionaryValue default_second; |
152 default_second.SetString("Profile0.Path", "first"); | 152 default_second.SetString("Profile0.Path", "first"); |
153 default_second.SetString("Profile0.IsRelative", "0"); | 153 default_second.SetString("Profile0.IsRelative", "0"); |
154 default_second.SetString("Profile1.Path", "second"); | 154 default_second.SetString("Profile1.Path", "second"); |
155 default_second.SetString("Profile1.IsRelative", "0"); | 155 default_second.SetString("Profile1.IsRelative", "0"); |
156 default_second.SetString("Profile1.Default", "1"); | 156 default_second.SetString("Profile1.Default", "1"); |
157 EXPECT_EQ("second", | 157 EXPECT_EQ("second", |
158 GetFirefoxProfilePathFromDictionary(default_second).MaybeAsASCII()); | 158 GetFirefoxProfilePathFromDictionary(default_second).MaybeAsASCII()); |
159 } | 159 } |
OLD | NEW |