Merge lp://staging/~smspillaz/compiz-libcompizconfig/compiz-libcompizconfig.context-mock into lp://staging/~compiz-team/compiz-libcompizconfig/0.9.8

Proposed by Sam Spilsbury
Status: Superseded
Proposed branch: lp://staging/~smspillaz/compiz-libcompizconfig/compiz-libcompizconfig.context-mock
Merge into: lp://staging/~compiz-team/compiz-libcompizconfig/0.9.8
Prerequisite: lp://staging/~smspillaz/compiz-libcompizconfig/compiz-libcompizconfig.setting-funcs-behind-interface
Diff against target: 508 lines (+469/-0)
4 files modified
tests/CMakeLists.txt (+24/-0)
tests/context-mock.cpp (+74/-0)
tests/mock-context.h (+337/-0)
tests/test-context.cpp (+34/-0)
To merge this branch: bzr merge lp://staging/~smspillaz/compiz-libcompizconfig/compiz-libcompizconfig.context-mock
Reviewer Review Type Date Requested Status
Compiz Maintainers Pending
Review via email: mp+104000@code.staging.launchpad.net

Description of the change

This is all about bug 990690.

!! - It probably isn't a good idea to test this branch in isolation, as it is part of a pipeline to get compiz-libcompizconfig under test. If you want to test the result of this work, you should probably look at testing

lp:~smspillaz/compiz-libcompizconfig/compiz-libcompizconfig.mock-context
lp:~smspillaz/compiz-compizconfig-python/compiz-compizconfig-python.setting-api
lp:~smspillaz/compiz-compizconfig-gconf/compiz-compizconfig-gconf.adapt-to-new-interfaces

.. that's all !!

This branch adds a mock for CCSContext, thunking the interface table in C to call a set of virtual functions on an interface class which then calls through to Google Mock. A small test demonstrating this behaviour is included.

To post a comment you must log in.

Unmerged revisions

456. By Sam Spilsbury

Added a mock for CCSContext and a small test file to demo how it works

455. By Sam Spilsbury

Use CCSObjectFinalize

454. By Sam Spilsbury

Use CCSObject for CCSSetting

453. By Sam Spilsbury

Merged refactor-setting into setting-funcs-behind-interface.

452. By Sam Spilsbury

Merged refactor-setting into setting-funcs-behind-interface.

451. By Sam Spilsbury

Merged refactor-setting into setting-funcs-behind-interface.

450. By Sam Spilsbury

Merged refactor-setting into setting-funcs-behind-interface.

449. By Sam Spilsbury

Merged refactor-setting into setting-funcs-behind-interface.

448. By Sam Spilsbury

Merged refactor-setting into setting-funcs-behind-interface.

447. By Sam Spilsbury

Works with protocol buffers

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches