Skip to content
Snippets Groups Projects
  1. May 13, 2019
  2. May 12, 2019
  3. May 11, 2019
    • Bryan Henry's avatar
      [component_manager] Don't assume /svc/fuchsia.pkg.PackageResolver always exists · 85d19081
      Bryan Henry authored
      This is currently only true in tests of component_manager that run as v1
      Components, but will not be true of the component_manager started from
      bootsvc.
      
      CF-750 #done
      
      Test: No package resolver case is covered by new no_pkg_resolver_test.
      Package resolver present case is covered by existing integration tests
      like routing_integration_test.
      
      Change-Id: Ide07ab3d87ee5c31ea8f036c7dbb3c3b59c7fc00
      85d19081
    • Francois Rousseau's avatar
      [feedback] spawn a new DataProvider on every request · 1ba56adc
      Francois Rousseau authored
      by having feedback_agent spawn a new process on every fuchsia.feedback.DataProvider
      request it gets, we can better isolate each request handling, in
      particular if it has dangling threads due to some attachment collection
      hanging and make sure the process exits upon request fulfillment
      
      DX-1497 #comment
      
      TESTED=`fx run-test feedback_agent_tests`
      
      Change-Id: I103b36ef2cfc4df6a7eef5a5783ddc22e93357e8
      1ba56adc
    • Bryan Henry's avatar
      [component_manager] Split into lib & bin targets to improve testability · 05321628
      Bryan Henry authored
      A future change will move some of the startup code out of main() to
      enable testing it in multiple different environments.
      
      Test: Refactor, no change in behavior. Covered by existing tests.
      
      Change-Id: I1fb82522268acdc0265aba6490230fb4404e995f
      05321628
    • Marie Janssen 💖's avatar
      [bt] Eliminate ::common:: namespace. · f6de06b4
      Marie Janssen 💖 authored
      Remove the ::common:: namespace for sapphire-wide objects.
      
      fx format-code
      
      Test: bt-host-unittests, manual test of supported platforms (no
          behavior change)
      BT-870
      
      Change-Id: I810f29852e0da0d3d5bec25d57b2706d39be4e61
      f6de06b4
    • Casey Dahlin's avatar
      [debugger][elflib] Move Build ID extraction to elflib · 5b27d23c
      Casey Dahlin authored
      Change-Id: Ie2919f76b09db6f7419fc3be598af72f6f10ef24
      5b27d23c
    • Francois Rousseau's avatar
      [crash] switch to using fsl::GetObjectName to get the process name · 16d75f60
      Francois Rousseau authored
      the default name (from when the lookup fails) changes from "unknown-package" to "", which is fine and package was a bit of a misnomer anyway
      
      TESTED=`fx run-test crashpad_agent_tests`
      
      Change-Id: I51e4b86e2ccc74bc3e2d8751480211139f68aab2
      16d75f60
    • Francois Rousseau's avatar
      [feedback] add utilies to check the number of data provider processes in tests · 786d36b7
      Francois Rousseau authored
      for now, there are no data provider processes, but in the future there
      will be one per connection to fuchsia.feedback.DataProvider. This CL is
      just to introduce the test utilities.
      
      DX-1497 #comment
      
      TESTED=`fx run-test feedback_agent_tests -t feedback_agent_integration_test`
      
      Change-Id: Ia5cb07334d3d27874318cd6b54fcf4afaa336da0
      786d36b7
    • Marie Janssen 💖's avatar
      [bt][host] Rename DeviceId => PeerId · 94ae69c8
      Marie Janssen 💖 authored
      DeviceId only referred to peers and is renamed to be more consistent
      with the idea that it is an identifier for a bluetooth peer.
      
      fx format-code because "Peer" is 2 characters shorter
      
      Test: bt-host-unittests (no behavior change)
      BT-870
      
      Change-Id: Ib97223e106bf9a9efb506de343ce218ba0b50c62
      94ae69c8
    • Jody Sankey's avatar
      [identity] Move dev auth providers to /src/identity. · 2459de2d
      Jody Sankey authored
      Previously the two auth providers were packaged together. There wasn't a
      good reason for this and its likely they will eventually be used
      separately so we give them their own package.
      
      AUTH-196 #comment
      
      Change-Id: I5dd60fdd18a10261636e46fde90d30587e76f0a9
      2459de2d
    • Marie Janssen 💖's avatar
      [bt][host] rename RemoteDevice to Peer · aa571291
      Marie Janssen 💖 authored
      as part of the effort to use consistent vocabulary, rename RemoteDevice
      to Peer, including PeerCache and related variables.
      
      fx format-code for reflows.
      
      Test: bt-host-unittests (no behavior change)
      BT-870
      
      Change-Id: Ib96e929f93e2fac23ccf098e6df9921678cd2e11
      aa571291
    • Erick Tryzelaar's avatar
      [system-ota-tests] Extract the host/target testing lib · cf476d5c
      Erick Tryzelaar authored
      This makes it easier for other tests to use the infrastructure
      created in the system ota tests for other host/target-style testing.
      
      Change-Id: Ib704b713d2889512656ebdbc0a58fd3063649414
      cf476d5c
    • Ankur Mittal's avatar
      Revert "[wlan-inspect] Be explicit about logging Option" · f9915b7a
      Ankur Mittal authored
      This reverts commit f50bcc0c.
      
      Reason for revert: Build is failing
      
      Original change's description:
      > [wlan-inspect] Be explicit about logging Option
      > 
      > Previously, we added a blanket WriteInspect implementation to Option
      > types that would log a value only if an Option doesn't exist. When
      > looking at an inspect_log call on an optional value, it's non-obvious
      > that in some cases, no value would be logged, and this blanket
      > implementation was only added because inspect_log didn't have a way to
      > specify optional logging.
      > 
      > With this commit, optional logging can be specified with a question
      > mark on the key, so the blanket WriteInspect implementation is also
      > removed.
      > 
      > Test: fx run-test wlan-inspect-tests
      > Change-Id: I926c20fe2e64fc2e1221c2b84b61d5d9b062e817
      
      TBR=qsr@google.com,hahnr@google.com,eyw@google.com,kiettran@google.com
      
      Change-Id: Iac6d853aa9561dd04089408b071909da66dcb63e
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      f9915b7a
  4. May 10, 2019
    • Kiet Tran's avatar
      [wlan-inspect] Be explicit about logging Option · f50bcc0c
      Kiet Tran authored
      Previously, we added a blanket WriteInspect implementation to Option
      types that would log a value only if an Option doesn't exist. When
      looking at an inspect_log call on an optional value, it's non-obvious
      that in some cases, no value would be logged, and this blanket
      implementation was only added because inspect_log didn't have a way to
      specify optional logging.
      
      With this commit, optional logging can be specified with a question
      mark on the key, so the blanket WriteInspect implementation is also
      removed.
      
      Test: fx run-test wlan-inspect-tests
      Change-Id: I926c20fe2e64fc2e1221c2b84b61d5d9b062e817
      f50bcc0c
    • Kiet Tran's avatar
      [wlan][sme] Improve key logging in Inspect · b7918049
      Kiet Tran authored
      WLAN-1117 #done
      
      Test: Verify Inspect output. Example:
      ```
      4:
        @time = 80.777
        cipher = 00-0F-AC:4
        derived_key = PTK
      5:
        @time = 80.777
        cipher = 00-0F-AC:2
        derived_key = GTK
        key_index = 2
      ```
      
      Change-Id: Id1046dcfbd65fc800d6b7cfbd04e7dd7ee27052e
      b7918049
    • Brett Wilson's avatar
      [debugger] Remove stack address checking in test. · 9bd727ff
      Brett Wilson authored
      This test of code addresses is not flexible enought to account for all
      the code our compilers can generate. Testing this in the future will
      require something more complicated like assembly code, so this test
      removes that part of the checking for now. The rest of the test is still
      a good smoke test for the unwinder.
      
      Change-Id: Id2d18eca6ccb8b4d214a3bf627e6da090388542f
      9bd727ff
    • Bryan Henry's avatar
      [fuchsia-zircon] Create Rust wrappers for zx_debuglog_* syscalls · 6f00d2a2
      Bryan Henry authored
      And use them in places where we make such syscalls directly with unsafe
      Rust today. (Plus add in missing test coverage for logger that covers
      the modified code.)
      
      The zx_debuglog_read wrapper currently returns a plain Vec of bytes and
      the caller needs to parse it according to the definition of
      zx_log_record_t. In the future it ideally would return an already-parsed
      Rust struct type, but there is some uncertainty around the existing
      debuglog syscalls so this wasn't done yet.
      
      Change-Id: Ibf3ddc6195a751dbacb6e0e9d24250370e8516e9
      6f00d2a2
    • Martin Puryear's avatar
      [audio_core] Resampler cleanup · 1cbdeb62
      Martin Puryear authored
      This CL aligns the Linear and Sample-and-Hold interpolators, in
      preparation of introducing additional interpolating resamplers.
      No functional change -- just tweaking the linear and point resamplers
      to use identical patterns and sequences (as the soon-to-be-added
      ones will likely do, as well).
      
      Test: 170 existing automated test cases in audio_mixer_tests
      (audio_mixer_tests --full) on all products.boards
      
      MTWN-296 #done
      
      Change-Id: I0753b3fc13d4eb69ffef56a38906043980304df1
      1cbdeb62
    • Allan MacKinnon's avatar
      [graphics][compute] Update docs to follow Fuchsia guidelines. · ab2ba9fe
      Allan MacKinnon authored
      Change-Id: I01d51517ff3630a7f1c587e73a3b26d6d36eee84
      ab2ba9fe
    • Martin Puryear's avatar
      [audio_core] Rectify logging levels · 369c782c
      Martin Puryear authored
      To prepare for enabling very-long-running tests, as well
      as for the introduction of a framework for telemetry
      collection, this CL makes consistent the use of logging
      by audio_core (and audio_core's tests). Truly blocking
      conditions are ERROR; safely-ignored conditions are INFO.
      Also, for debug builds audio_core's default log level is
      set to INFO, while on release builds it is set to WARNING.
      
      Test: no functional behavior change
      Change-Id: I1d8251a6aac79fc0bfb811ca8c398f2ac2004818
      369c782c
    • Zac Bowling's avatar
      [bt][avrcp] Initial AVCTP and AV/C crate · 6a200eed
      Zac Bowling authored
      Design heavily influenced by AVDTP crate.
      
      Supports:
      
      - Owning a L2CAP socket to a remote peer.
      - Responding to unit info and subunit commands.
      - Sending AVC passthrough commands to a target.
      - Receving target passthrough and vendor dependent packets.
      - Sending responses back to controller commands.
      
      BT-657
      Test: fx run-test bt-avctp-tests
      
      Change-Id: I861d86a61f17294c430beecf0ca08cea3264e5ea
      6a200eed
    • Martin Puryear's avatar
      [audio_core] Fractional position when mute · db1e11ef
      Martin Puryear authored
      While adding resampler-related test cases and related refactoring,
      in preparation for adding new resamplers, test cases exposed MTWN-296
      in the mixer core:
      
      To handle step_size limitations, the mixer uses modulo|numerator|
      denominator values for any rate or position fractional components that
      cannot be captured with the 13 bits of fixed-point fraction. For a
      given mix pass, we calculate end position using these values, doing so
      correctly in the usual case of producing every frame, but slightly
      incorrectly in the optimization case of MUTED (whether explicitly
      muted, or gain is simply too low to ever produce a value). This defect
      would primarily be exposed when performing very fine-grained rate
      adjustments.
      
      This CL therefore contains the test-code refactoring so far, plus the
      test cases that exposed the bug, and the product fix, as well as
      additional test cases to verify that no other related bugs lurked.
      
      Test: 15 new test cases, bringing the total to 170
      ('audio_mixer_tests --full' in basic_envs on all products.boards)
      
      BUG: MTWN-296 #done
      
      Change-Id: If41e20af77bcebbbad7aaf7d5301fded6c027dc3
      db1e11ef
    • Martin Puryear's avatar
      [media][test] Test 3.999:1 and 1:3.999 resampling · e8b3e0a4
      Martin Puryear authored
      This CL changes the previous new test cases (which validated the
      3:1 resampling ratio) to instead validate the 3.9999:1 resampling
      ratio, and to add the 1:3.9999 resampling ratio.  This tests
      particularly problematic ratios for both interpolators, and continues
      to defend our sample-rate limits (this effectively rate-converts from
      191999 Hz to 48000 Hz).
      
      This CL also includes fidelity limit values that we require for these
      ratios (both frequency response and signal-to-noise-and-distortion).
      
      Test: test-only CL; adds 8 test cases runnable on any product/board
      
      Change-Id: I4d2ff29a48403eaa98cd13f721b66e38191211bc
      e8b3e0a4
    • Martin Puryear's avatar
      [media][tests] Re-enable AudioDeviceTests · 8d300150
      Martin Puryear authored
      The GetNumVirtualDevices API that was recently added to
      virtualaudio can be used to eliminate the synchronization
      issues that AudioDeviceTests faces, so this set of tests
      can now be re-enabled.
      
      Test: re-adds 67 test cases; no production code change
      
      MTWN-293 #done
      
      Change-Id: I6d4618a52835f2ef388bed1dddef9491fc2e2b8d
      8d300150
    • Brett Wilson's avatar
      [debugger] Make ModuleSymbolIndexNode move-only. · e54b13ec
      Brett Wilson authored
      Previously this was copyable but not copied in practice.
      
      Changes some of the code that took pairs because std::pairs to make the
      call-sites better.
      
      This should have no affect on functionality and I measured indexing
      performance to be the same within typical measurement error.
      
      Change-Id: I5adebf46f0be89090f8048e7b00db8b3c71c7d42
      e54b13ec
    • Brett Wilson's avatar
      [debugger] Improve indexing performance. · d8d9d61b
      Brett Wilson authored
      Performance improves by ~7% by optimizing allocation of vectors and strings
      iin module_symbol_index and module_symbol_index_node before doing the indexing.
      
      Performance improves by ~15% by optimizing the allocation of the "seen_attrs"
      vector in the DwarfDieDecoder.
      
      This was measured by running the normall-commented-out test
      ModuleSymbolIndex.BenchmarkIndexing and giving it an ELF binary of a fully
      symbolized release build of Chrome.
      
      There should be no functional change.
      
      Change-Id: I107a3d651ac05e9b2959da88a06e463173eae199
      d8d9d61b
Loading