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

Unified Diff: chrome/browser/sync/util/user_settings_unittest.cc

Issue 2833047: sync: Get rid of the now obsolete character_set_converters.h API. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: fix indent 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/util/character_set_converters_win.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/user_settings_unittest.cc
diff --git a/chrome/browser/sync/util/user_settings_unittest.cc b/chrome/browser/sync/util/user_settings_unittest.cc
index a39f98744742ef87fda92b65e006280d88e483f9..236ecabbaac23839162b127818c88dd7b2a28bcb 100644
--- a/chrome/browser/sync/util/user_settings_unittest.cc
+++ b/chrome/browser/sync/util/user_settings_unittest.cc
@@ -8,7 +8,6 @@
#include "base/file_util.h"
#include "base/scoped_temp_dir.h"
#include "chrome/browser/sync/syncable/directory_manager.h"
-#include "chrome/browser/sync/util/character_set_converters.h"
#include "chrome/browser/sync/util/user_settings.h"
#include "chrome/common/sqlite_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -16,7 +15,6 @@
using browser_sync::APEncode;
using browser_sync::APDecode;
using browser_sync::ExecOrDie;
-using browser_sync::FilePathToUTF8;
using browser_sync::UserSettings;
using std::numeric_limits;
@@ -79,7 +77,11 @@ class UserSettingsTest : public testing::Test {
statement.prepare(primer_handle, query);
statement.bind_string(0, "foo@foo.com");
statement.bind_string(1, "foo@foo.com");
- statement.bind_string(2, FilePathToUTF8(old_style_sync_data_path_));
+#if defined(OS_WIN)
+ statement.bind_string(2, WideToUTF8(old_style_sync_data_path_.value()));
+#elif defined(OS_POSIX)
+ statement.bind_string(2, old_style_sync_data_path_.value());
+#endif
if (SQLITE_DONE != statement.step()) {
LOG(FATAL) << query << "\n" << sqlite3_errmsg(primer_handle);
}
« no previous file with comments | « chrome/browser/sync/util/character_set_converters_win.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698