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

Side by Side Diff: chrome/browser/importer/firefox_importer_unittest.cc

Issue 2857015: Clang/mac: Get unit_tests built. (Closed)
Patch Set: rebase Created 10 years, 4 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
« no previous file with comments | « chrome/browser/cocoa/objc_zombie.mm ('k') | chrome/browser/importer/importer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/importer/firefox2_importer.h" 12 #include "chrome/browser/importer/firefox2_importer.h"
13 #include "chrome/browser/importer/firefox_importer_unittest_utils.h" 13 #include "chrome/browser/importer/firefox_importer_unittest_utils.h"
14 #include "chrome/browser/importer/firefox_importer_utils.h" 14 #include "chrome/browser/importer/firefox_importer_utils.h"
15 #include "chrome/browser/importer/nss_decryptor.h" 15 #include "chrome/browser/importer/nss_decryptor.h"
16 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
17 17
18 using base::Time; 18 using base::Time;
19 #if 0
19 20
20 // The following 2 tests require the use of the NSSDecryptor, on OSX this needs 21 // The following 2 tests require the use of the NSSDecryptor, on OSX this needs
21 // to run in a separate process, so we use a proxy object so we can share the 22 // to run in a separate process, so we use a proxy object so we can share the
22 // same test between platforms. 23 // same test between platforms.
23 TEST(FirefoxImporterTest, Firefox2NSS3Decryptor) { 24 TEST(FirefoxImporterTest, Firefox2NSS3Decryptor) {
24 FilePath nss_path; 25 FilePath nss_path;
25 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &nss_path)); 26 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &nss_path));
26 #ifdef OS_MACOSX 27 #ifdef OS_MACOSX
27 nss_path = nss_path.AppendASCII("firefox2_nss_mac"); 28 nss_path = nss_path.AppendASCII("firefox2_nss_mac");
28 #else 29 #else
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 result = Firefox2Importer::ParseBookmarkFromLine( 171 result = Firefox2Importer::ParseBookmarkFromLine(
171 "<DT><A HREF=\"http://domain.com/?q=%22", 172 "<DT><A HREF=\"http://domain.com/?q=%22",
172 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data); 173 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data);
173 EXPECT_FALSE(result); 174 EXPECT_FALSE(result);
174 EXPECT_EQ(L"", title); 175 EXPECT_EQ(L"", title);
175 EXPECT_EQ("", url.spec()); 176 EXPECT_EQ("", url.spec());
176 EXPECT_EQ(L"", shortcut); 177 EXPECT_EQ(L"", shortcut);
177 EXPECT_EQ(L"", post_data); 178 EXPECT_EQ(L"", post_data);
178 EXPECT_TRUE(Time() == add_date); 179 EXPECT_TRUE(Time() == add_date);
179 } 180 }
181 #endif
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/objc_zombie.mm ('k') | chrome/browser/importer/importer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698