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

Side by Side Diff: sql/correct_sql_test_base.h

Issue 1176653002: mandoline filesystem: add a sqlite3 vfs to proxy filesystem usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win 8 Created 5 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
« no previous file with comments | « sql/connection_unittest.cc ('k') | sql/meta_table_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SQL_CORRECT_SQL_TEST_BASE_H_
6 #define SQL_CORRECT_SQL_TEST_BASE_H_
7
8 // This header exists to get around gn check. We want to use the same testing
9 // code in both the sql_unittests target (which uses gtest and targets the
10 // filesystem directly) and sql_apptests.mojo (which uses mojo:apptest and
11 // proxies the additional filesystem access to mojo:filesystem). Both of these
12 // files define a class named sql::SQLTestBase and have the same interface.
13 //
14 // Unfortunately, gn check does not understand preprocessor directives. If it
15 // did, the following code would be gn check clean, but since it isn't, we
16 // stuff this redirection header in its own file, give it its own source_set
17 // target, and then set check_includes to false.
18 //
19 // This work around was suggested by brettw@.
20 #if defined(MOJO_APPTEST_IMPL)
21 #include "sql/mojo/sql_test_base.h"
22 #else
23 #include "sql/test/sql_test_base.h"
24 #endif
25
26 #endif // SQL_CORRECT_SQL_TEST_BASE_H_
27
OLDNEW
« no previous file with comments | « sql/connection_unittest.cc ('k') | sql/meta_table_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698