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

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, 6 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
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/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/importer/firefox2_importer.h" 11 #include "chrome/browser/importer/firefox2_importer.h"
12 #include "chrome/browser/importer/firefox_importer_unittest_utils.h" 12 #include "chrome/browser/importer/firefox_importer_unittest_utils.h"
13 #include "chrome/browser/importer/firefox_importer_utils.h" 13 #include "chrome/browser/importer/firefox_importer_utils.h"
14 #include "chrome/browser/importer/nss_decryptor.h" 14 #include "chrome/browser/importer/nss_decryptor.h"
15 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
16 16
17 using base::Time; 17 using base::Time;
18 #if 0
18 19
19 // The following 2 tests require the use of the NSSDecryptor, on OSX this needs 20 // The following 2 tests require the use of the NSSDecryptor, on OSX this needs
20 // to run in a separate process, so we use a proxy object so we can share the 21 // to run in a separate process, so we use a proxy object so we can share the
21 // same test between platforms. 22 // same test between platforms.
22 TEST(FirefoxImporterTest, Firefox2NSS3Decryptor) { 23 TEST(FirefoxImporterTest, Firefox2NSS3Decryptor) {
23 FilePath nss_path; 24 FilePath nss_path;
24 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &nss_path)); 25 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &nss_path));
25 #ifdef OS_MACOSX 26 #ifdef OS_MACOSX
26 nss_path = nss_path.AppendASCII("firefox2_nss_mac"); 27 nss_path = nss_path.AppendASCII("firefox2_nss_mac");
27 #else 28 #else
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 result = Firefox2Importer::ParseBookmarkFromLine( 170 result = Firefox2Importer::ParseBookmarkFromLine(
170 "<DT><A HREF=\"http://domain.com/?q=%22", 171 "<DT><A HREF=\"http://domain.com/?q=%22",
171 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data); 172 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data);
172 EXPECT_FALSE(result); 173 EXPECT_FALSE(result);
173 EXPECT_EQ(L"", title); 174 EXPECT_EQ(L"", title);
174 EXPECT_EQ("", url.spec()); 175 EXPECT_EQ("", url.spec());
175 EXPECT_EQ(L"", shortcut); 176 EXPECT_EQ(L"", shortcut);
176 EXPECT_EQ(L"", post_data); 177 EXPECT_EQ(L"", post_data);
177 EXPECT_TRUE(Time() == add_date); 178 EXPECT_TRUE(Time() == add_date);
178 } 179 }
180 #endif
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/sad_tab_controller_unittest.mm ('k') | chrome/browser/net/url_fixer_upper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698