tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

size_of.rs (1355B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
      4 
      5 use selectors::parser::{SelectorParseError, SelectorParseErrorKind};
      6 use style::invalidation::element::invalidation_map::Dependency;
      7 use style::properties;
      8 
      9 size_of_test!(test_size_of_dependency, Dependency, 16);
     10 
     11 size_of_test!(
     12    test_size_of_property_declaration,
     13    properties::PropertyDeclaration,
     14    32
     15 );
     16 
     17 // This is huge, but we allocate it on the stack and then never move it,
     18 // we only pass `&mut SourcePropertyDeclaration` references around.
     19 size_of_test!(
     20    test_size_of_parsed_declaration,
     21    properties::SourcePropertyDeclaration,
     22    568
     23 );
     24 
     25 size_of_test!(
     26    test_size_of_selector_parse_error_kind,
     27    SelectorParseErrorKind,
     28    40
     29 );
     30 size_of_test!(
     31    test_size_of_style_parse_error_kind,
     32    ::style_traits::StyleParseErrorKind,
     33    56
     34 );
     35 size_of_test!(
     36    test_size_of_value_parse_error_kind,
     37    ::style_traits::ValueParseErrorKind,
     38    40
     39 );
     40 
     41 size_of_test!(test_size_of_selector_parse_error, SelectorParseError, 56);
     42 size_of_test!(
     43    test_size_of_style_traits_parse_error,
     44    ::style_traits::ParseError,
     45    72
     46 );
     47 size_of_test!(
     48    test_size_of_value_parse_error,
     49    ::style_traits::ValueParseError,
     50    56
     51 );