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

Unified Diff: components/test/data/history/README.md

Issue 1875033005: [Downloads/History] Add tab-url and tab-referrer-url to DownloadRow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guid-fix
Patch Set: Update expectations for DownloadUIController test. Created 4 years, 8 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
Index: components/test/data/history/README.md
diff --git a/components/test/data/history/README.md b/components/test/data/history/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..1acdc663799e1dfebdb52f7405c7d4e336cbec34
--- /dev/null
+++ b/components/test/data/history/README.md
@@ -0,0 +1,25 @@
+## How to generate history.N.sql files using a Chromium build.
+
+On a Linux build:
+
+1. Build the `sqlite_shell` target. This will build the [SQLite CLI].
+
+ $ ninja sqlite_shell
+
+2. Run Chrome/Chromium with a fresh profile directory and immediately quit. It
+ doesn't really matter how long you run it, but there'll be less work for you
+ if you quit early.
+
+ $ out/Debug/chrome-wrapper --user-data-dir=foo
+
+3. Locate the `History` file in the profile directory.
+
+4. Dump the `History` database into a text file:
+
+ $ echo '.dump' | sqlite_shell foo/Default/History > history.sql
+
+5. Manually remove all `INSERT INTO` statements other than the statements
+ populating the `meta` table.
+
+[SQLite CLI]: https://www.sqlite.org/cli.html
+
« no previous file with comments | « components/history/core/test/history_backend_db_base_test.cc ('k') | components/test/data/history/history.30.sql » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698