Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: chrome/utility/importer/firefox_importer_utils_unittest.cc

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another gyp attempt Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
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
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 }
OLDNEW
« no previous file with comments | « chrome/utility/importer/firefox_importer_unittest_utils_mac.cc ('k') | chrome/utility/importer/ie_importer_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698