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

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

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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) 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 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
11 #include "base/android/jni_array.h" 11 #include "base/android/jni_array.h"
12 #include "base/android/jni_string.h" 12 #include "base/android/jni_string.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ptr_util.h"
14 #include "base/run_loop.h" 15 #include "base/run_loop.h"
15 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
16 #include "base/task/cancelable_task_tracker.h" 17 #include "base/task/cancelable_task_tracker.h"
17 #include "base/time/time.h" 18 #include "base/time/time.h"
18 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 19 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
19 #include "chrome/browser/history/android/android_history_provider_service.h" 20 #include "chrome/browser/history/android/android_history_provider_service.h"
20 #include "chrome/browser/history/history_service_factory.h" 21 #include "chrome/browser/history/history_service_factory.h"
21 #include "chrome/common/chrome_constants.h" 22 #include "chrome/common/chrome_constants.h"
22 #include "chrome/test/base/testing_browser_process.h" 23 #include "chrome/test/base/testing_browser_process.h"
23 #include "chrome/test/base/testing_profile.h" 24 #include "chrome/test/base/testing_profile.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 cursor->GetBlob(env, NULL, 3); 226 cursor->GetBlob(env, NULL, 3);
226 std::vector<uint8_t> out; 227 std::vector<uint8_t> out;
227 base::android::JavaByteArrayToByteVector(env, data.obj(), &out); 228 base::android::JavaByteArrayToByteVector(env, data.obj(), &out);
228 EXPECT_EQ(data_bytes->data().size(), out.size()); 229 EXPECT_EQ(data_bytes->data().size(), out.size());
229 EXPECT_EQ(data_bytes->data()[0], out[0]); 230 EXPECT_EQ(data_bytes->data()[0], out[0]);
230 cursor->Destroy(env, NULL); 231 cursor->Destroy(env, NULL);
231 // Cursor::Destroy posts the task in UI thread, run Message loop to release 232 // Cursor::Destroy posts the task in UI thread, run Message loop to release
232 // the statement, delete SQLiteCursor itself etc. 233 // the statement, delete SQLiteCursor itself etc.
233 content::RunAllPendingInMessageLoop(); 234 content::RunAllPendingInMessageLoop();
234 } 235 }
OLDNEW
« no previous file with comments | « chrome/browser/field_trial_recorder.cc ('k') | chrome/browser/importer/external_process_importer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698