OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/scoped_temp_dir.h" | 6 #include "base/files/scoped_temp_dir.h" |
7 #include "chrome/browser/importer/firefox_importer_utils.h" | 7 #include "chrome/common/importer/firefox_importer_utils.h" |
gab
2013/07/08 15:18:08
Shouldn't this entire test move with firefox_impor
scottmg
2013/07/09 16:20:49
Done.
| |
8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 struct GetPrefsJsValueCase { | 14 struct GetPrefsJsValueCase { |
15 std::string prefs_content; | 15 std::string prefs_content; |
16 std::string pref_name; | 16 std::string pref_name; |
17 std::string pref_value; | 17 std::string pref_value; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 GetFirefoxImporterNameCases[i].app_ini_content.c_str(), | 109 GetFirefoxImporterNameCases[i].app_ini_content.c_str(), |
110 GetFirefoxImporterNameCases[i].app_ini_content.size()); | 110 GetFirefoxImporterNameCases[i].app_ini_content.size()); |
111 EXPECT_EQ(GetFirefoxImporterName(temp_dir.path()), | 111 EXPECT_EQ(GetFirefoxImporterName(temp_dir.path()), |
112 l10n_util::GetStringUTF16(GetFirefoxImporterNameCases[i].resource_id)); | 112 l10n_util::GetStringUTF16(GetFirefoxImporterNameCases[i].resource_id)); |
113 } | 113 } |
114 EXPECT_EQ(l10n_util::GetStringUTF16( | 114 EXPECT_EQ(l10n_util::GetStringUTF16( |
115 IDS_IMPORT_FROM_FIREFOX), | 115 IDS_IMPORT_FROM_FIREFOX), |
116 GetFirefoxImporterName(base::FilePath( | 116 GetFirefoxImporterName(base::FilePath( |
117 FILE_PATH_LITERAL("/invalid/path")))); | 117 FILE_PATH_LITERAL("/invalid/path")))); |
118 } | 118 } |
OLD | NEW |