summaryrefslogtreecommitdiffstats
path: root/third_party/protobuf2/protobuf.gyp
diff options
context:
space:
mode:
authornick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-15 22:28:18 +0000
committernick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-15 22:28:18 +0000
commit20d241c33c3e6c1be8ab4023dfa46d6a4fdb4766 (patch)
treeeabbd6105323cfff531bf12d92feeccaa9f6fe40 /third_party/protobuf2/protobuf.gyp
parent9aae0f1396b3a9f6c228326b3770c94e741b1bd9 (diff)
downloadchromium_src-20d241c33c3e6c1be8ab4023dfa46d6a4fdb4766.zip
chromium_src-20d241c33c3e6c1be8ab4023dfa46d6a4fdb4766.tar.gz
chromium_src-20d241c33c3e6c1be8ab4023dfa46d6a4fdb4766.tar.bz2
Revert 44708 - Python implementation of sync server, for testing.
Implement the server side of chromium sync inside of testserver.py. The implementation supports at most one account (and ignores authentication credentials), but is otherwise reasonably full featured. Make the sync_integration_tests run by default against the test server. An externallyprovided syncurl will give the old behavior. Protocol buffers stuff: The test sync server requires Python generated code for .proto files. I've put generated code, as well as the python protocol buffers runtime library, in the output directory + "/python" (e.g, on windows, src/chrome/Debug/python/google/protobuf). This might be a bad place, or a bad name open to suggestions. The main thing is that there will be runtime dependencies on it, so it didn't seem right to put it in obj/. Flakiness fix: In the InProcessBrowserTest framework, improve the mechanism for tests that want to manually set up a user data directory. The new way ensures that the user data directory is always wiped; tests can't accidentally forget to do this anymore. Flakiness fix: Make testserver try to /kill any old instance that might be hogging the port. Very useful if a test failure leaves a server running. Tested this against all combos of protocols, and it seems to work. Flakiness fix: Port sync_integration_tests to the outofprocess test runner. Flakiness fix: For IN_PROC_BROWSER_TESTS, don't run the test body if the setup triggered a fatal (ASSERT_) failure. BUG=20905,40980 Review URL: http://codereview.chromium.org/1622012 TBR=nick@chromium.org Review URL: http://codereview.chromium.org/1633015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44714 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/protobuf2/protobuf.gyp')
-rw-r--r--third_party/protobuf2/protobuf.gyp81
1 files changed, 0 insertions, 81 deletions
diff --git a/third_party/protobuf2/protobuf.gyp b/third_party/protobuf2/protobuf.gyp
index c812d52..95272e9c 100644
--- a/third_party/protobuf2/protobuf.gyp
+++ b/third_party/protobuf2/protobuf.gyp
@@ -78,7 +78,6 @@
'defines': [
'GOOGLE_PROTOBUF_NO_RTTI',
],
-
'direct_dependent_settings': {
'include_dirs': [
'<(config_h_dir)',
@@ -219,86 +218,6 @@
'src/src',
],
},
- {
- # Generate the python module needed by all protoc-generated Python code.
- 'target_name': 'py_proto',
- 'type': 'none',
- 'copies': [
- {
- 'destination': '<(PRODUCT_DIR)/pyproto/google/',
- 'files': [
- # google/ module gets an empty __init__.py.
- '__init__.py',
- ],
- },
- {
- 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf',
- 'files': [
- 'src/python/google/protobuf/__init__.py',
- 'src/python/google/protobuf/descriptor.py',
- 'src/python/google/protobuf/message.py',
- 'src/python/google/protobuf/reflection.py',
- 'src/python/google/protobuf/service.py',
- 'src/python/google/protobuf/service_reflection.py',
- 'src/python/google/protobuf/text_format.py',
-
- # TODO(ncarter): protoc's python generator treats descriptor.proto
- # specially, but it's not possible to trigger the special treatment
- # unless you run protoc from ./src/src (the treatment is based
- # on the path to the .proto file matching a constant exactly).
- # I'm not sure how to convince gyp to execute a rule from a
- # different directory. Until this is resolved, use a copy of
- # descriptor_pb2.py that I manually generated.
- 'descriptor_pb2.py',
- ],
- },
- {
- 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal',
- 'files': [
- 'src/python/google/protobuf/internal/__init__.py',
- 'src/python/google/protobuf/internal/containers.py',
- 'src/python/google/protobuf/internal/decoder.py',
- 'src/python/google/protobuf/internal/encoder.py',
- 'src/python/google/protobuf/internal/generator_test.py',
- 'src/python/google/protobuf/internal/message_listener.py',
- 'src/python/google/protobuf/internal/type_checkers.py',
- 'src/python/google/protobuf/internal/wire_format.py',
- ],
- },
- ],
- # # We can't generate a proper descriptor_pb2.py -- see earlier comment.
- # 'rules': [
- # {
- # 'rule_name': 'genproto',
- # 'extension': 'proto',
- # 'inputs': [
- # '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
- # ],
- # 'variables': {
- # # The protoc compiler requires a proto_path argument with the
- # # directory containing the .proto file.
- # 'rule_input_relpath': 'src/src/google/protobuf',
- # },
- # 'outputs': [
- # '<(PRODUCT_DIR)/pyproto/google/protobuf/<(RULE_INPUT_ROOT)_pb2.py',
- # ],
- # 'action': [
- # '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
- # '-I./src/src',
- # '-I./src',
- # '--python_out=<(PRODUCT_DIR)/pyproto/google/protobuf',
- # 'google/protobuf/descriptor.proto',
- # ],
- # 'message': 'Generating Python code from <(RULE_INPUT_PATH)',
- # },
- # ],
- # 'dependencies': [
- # 'protoc#host',
- # ],
- # 'sources': [
- # 'src/src/google/protobuf/descriptor.proto',
- # ],
- },
],
}