summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authornileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 08:11:42 +0000
committernileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 08:11:42 +0000
commit029a771393c2f13579ea342c608b1401beae0523 (patch)
tree32b477ede0dac1edc2ebdd63387d049ca222dee4 /content
parent1b68c09ffc0ebdf57de856e80a331b4ca14e30fb (diff)
downloadchromium_src-029a771393c2f13579ea342c608b1401beae0523.zip
chromium_src-029a771393c2f13579ea342c608b1401beae0523.tar.gz
chromium_src-029a771393c2f13579ea342c608b1401beae0523.tar.bz2
Android: Fix compile errors in content_browsertests
Also adding include_dirs as a direct_dependent_setting on the jni_headers targets in content. This makes depending on these targets easier. BUG=138275 Review URL: https://chromiumcodereview.appspot.com/11882011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/accessibility/dump_accessibility_tree_browsertest.cc1
-rw-r--r--content/browser/download/mhtml_generation_browsertest.cc1
-rw-r--r--content/browser/encrypted_media_browsertest.cc1
-rw-r--r--content/content.gyp5
-rw-r--r--content/content_app.gypi3
-rw-r--r--content/content_browser.gypi3
-rw-r--r--content/content_shell.gypi11
-rw-r--r--content/content_tests.gypi35
-rw-r--r--content/test/layout_browsertest.cc2
9 files changed, 49 insertions, 13 deletions
diff --git a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
index 27c9e47..0422146 100644
--- a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
+++ b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
@@ -6,6 +6,7 @@
#include <string>
#include <vector>
+#include "base/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/string_split.h"
diff --git a/content/browser/download/mhtml_generation_browsertest.cc b/content/browser/download/mhtml_generation_browsertest.cc
index 6d21e76..75f7aaf 100644
--- a/content/browser/download/mhtml_generation_browsertest.cc
+++ b/content/browser/download/mhtml_generation_browsertest.cc
@@ -4,6 +4,7 @@
#include "base/bind.h"
#include "base/file_path.h"
+#include "base/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "content/public/browser/web_contents.h"
diff --git a/content/browser/encrypted_media_browsertest.cc b/content/browser/encrypted_media_browsertest.cc
index 1d32e1d..547386b 100644
--- a/content/browser/encrypted_media_browsertest.cc
+++ b/content/browser/encrypted_media_browsertest.cc
@@ -4,6 +4,7 @@
#include "base/basictypes.h"
#include "base/command_line.h"
+#include "base/file_util.h"
#include "base/path_service.h"
#include "base/string16.h"
#include "base/string_util.h"
diff --git a/content/content.gyp b/content/content.gyp
index 52cfdf3..0d011da 100644
--- a/content/content.gyp
+++ b/content/content.gyp
@@ -344,6 +344,11 @@
'surface_texture_jni_headers',
'surface_jni_headers',
],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/content',
+ ],
+ },
'includes': [ 'content_jni.gypi' ],
},
],
diff --git a/content/content_app.gypi b/content/content_app.gypi
index 6f800e3..dc03208 100644
--- a/content/content_app.gypi
+++ b/content/content_app.gypi
@@ -40,9 +40,6 @@
'sources!': [
'app/content_main.cc',
],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/content',
- ],
'dependencies': [
'content.gyp:content_jni_headers',
'../skia/skia.gyp:skia',
diff --git a/content/content_browser.gypi b/content/content_browser.gypi
index e93a2a2..7caddfc 100644
--- a/content/content_browser.gypi
+++ b/content/content_browser.gypi
@@ -1043,9 +1043,6 @@
'-ljnigraphics',
],
},
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/content',
- ],
'sources!': [
'browser/geolocation/network_location_provider.cc',
'browser/geolocation/network_location_provider.h',
diff --git a/content/content_shell.gypi b/content/content_shell.gypi
index 7153cc8..429f0a9 100644
--- a/content/content_shell.gypi
+++ b/content/content_shell.gypi
@@ -167,9 +167,6 @@
'dependencies': [
'content_shell_jni_headers',
],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/content/shell',
- ],
}, { # else: OS!="android"
'dependencies': [
# This dependency is for running DRT against the content shell, and
@@ -560,6 +557,11 @@
'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
'shell/android/java/src/org/chromium/content_shell/Shell.java',
],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/content/shell',
+ ],
+ },
'variables': {
'jni_gen_dir': 'content/shell',
},
@@ -577,9 +579,6 @@
'../skia/skia.gyp:skia',
'<(DEPTH)/media/media.gyp:player_android',
],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/content/shell',
- ],
'sources': [
'shell/android/shell_library_loader.cc',
'shell/android/shell_library_loader.h',
diff --git a/content/content_tests.gypi b/content/content_tests.gypi
index 437d4bc..50ea12a 100644
--- a/content/content_tests.gypi
+++ b/content/content_tests.gypi
@@ -625,7 +625,7 @@
'targets': [
{
'target_name': 'content_browsertests',
- 'type': 'executable',
+ 'type': '<(gtest_target_type)',
'defines!': ['CONTENT_IMPLEMENTATION'],
'dependencies': [
'content_common',
@@ -791,6 +791,26 @@
'browser/accessibility/dump_accessibility_tree_helper.cc',
],
}],
+ ['OS=="android"', {
+ 'sources!': [
+ 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
+ 'browser/accessibility/dump_accessibility_tree_helper.cc',
+ # These are included via dependency on content_common and hence
+ # we get multiple definition errors in a shared library build.
+ # Other builds need it as the symbols are not exported.
+ 'common/content_constants_internal.cc',
+ 'common/content_constants_internal.h',
+ ],
+ 'sources': [
+ 'shell/android/shell_library_loader.cc',
+ 'shell/android/shell_library_loader.cc',
+ 'shell/android/shell_manager.cc',
+ 'shell/android/shell_manager.h',
+ ],
+ 'dependencies': [
+ 'content_shell_jni_headers',
+ ],
+ }],
['OS=="mac"', {
'dependencies': [
'content_shell', # Needed for Content Shell.app's Helper.
@@ -819,6 +839,19 @@
'browser/media/webrtc_browsertest.cc',
],
}],
+ ['enable_plugins==0', {
+ 'sources!': [
+ 'browser/plugin_service_impl_browsertest.cc',
+ 'browser/plugin_data_remover_impl_browsertest.cc',
+ 'renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc',
+ 'renderer/pepper/pepper_file_chooser_host_unittest.cc',
+ ],
+ }],
+ ['input_speech==0', {
+ 'sources/': [
+ ['exclude', '^browser/speech/'],
+ ]
+ }],
],
},
],
diff --git a/content/test/layout_browsertest.cc b/content/test/layout_browsertest.cc
index fa77552..3d38e18 100644
--- a/content/test/layout_browsertest.cc
+++ b/content/test/layout_browsertest.cc
@@ -34,6 +34,8 @@ static const char kPlatformName[] = "chromium-mac";
static const char kPlatformName[] = "chromium-linux";
#elif defined(OS_OPENBSD)
static const char kPlatformName[] = "chromium-openbsd";
+#elif defined(OS_ANDROID)
+static const char kPlatformName[] = "chromium-android";
#else
#error No known OS defined
#endif