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

Side by Side Diff: chrome/browser/history/android/sqlite_cursor_unittest.cc

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/history/android/sqlite_cursor.h" 5 #include "chrome/browser/history/android/sqlite_cursor.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
11 #include "base/android/jni_string.h" 11 #include "base/android/jni_string.h"
12 #include "base/strings/utf_string_conversions.h"
12 #include "base/time.h" 13 #include "base/time.h"
13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/history/android/android_history_provider_service.h" 14 #include "chrome/browser/history/android/android_history_provider_service.h"
15 #include "chrome/browser/history/android/android_history_types.h" 15 #include "chrome/browser/history/android/android_history_types.h"
16 #include "chrome/browser/history/android/android_time.h" 16 #include "chrome/browser/history/android/android_time.h"
17 #include "chrome/browser/history/history_service.h" 17 #include "chrome/browser/history/history_service.h"
18 #include "chrome/browser/history/history_service_factory.h" 18 #include "chrome/browser/history/history_service_factory.h"
19 #include "chrome/common/chrome_constants.h" 19 #include "chrome/common/chrome_constants.h"
20 #include "chrome/test/base/testing_browser_process.h" 20 #include "chrome/test/base/testing_browser_process.h"
21 #include "chrome/test/base/testing_profile.h" 21 #include "chrome/test/base/testing_profile.h"
22 #include "chrome/test/base/testing_profile_manager.h" 22 #include "chrome/test/base/testing_profile_manager.h"
23 #include "chrome/test/base/ui_test_utils.h" 23 #include "chrome/test/base/ui_test_utils.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 cursor->GetBlob(env, NULL, 3); 212 cursor->GetBlob(env, NULL, 3);
213 std::vector<uint8> out; 213 std::vector<uint8> out;
214 base::android::JavaByteArrayToByteVector(env, data.obj(), &out); 214 base::android::JavaByteArrayToByteVector(env, data.obj(), &out);
215 EXPECT_EQ(data_bytes->data().size(), out.size()); 215 EXPECT_EQ(data_bytes->data().size(), out.size());
216 EXPECT_EQ(data_bytes->data()[0], out[0]); 216 EXPECT_EQ(data_bytes->data()[0], out[0]);
217 cursor->Destroy(env, NULL); 217 cursor->Destroy(env, NULL);
218 // Cursor::Destroy posts the task in UI thread, run Message loop to release 218 // Cursor::Destroy posts the task in UI thread, run Message loop to release
219 // the statement, delete SQLiteCursor itself etc. 219 // the statement, delete SQLiteCursor itself etc.
220 content::RunAllPendingInMessageLoop(); 220 content::RunAllPendingInMessageLoop();
221 } 221 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698