tor-browser

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

import_test.rs (778B)


      1 // Copyright 2023 The Chromium Authors
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 mod test_direct {
      6    chromium::import! {
      7        "//chromium/build/rust/chromium_prelude:import_test_lib";
      8    }
      9 
     10    pub fn import_test() {
     11        import_test_lib::import_test_lib();
     12    }
     13 }
     14 
     15 mod test_as {
     16    chromium::import! {
     17        "//chromium/build/rust/chromium_prelude:import_test_lib" as library;
     18    }
     19 
     20    pub fn import_test() {
     21        library::import_test_lib();
     22    }
     23 }
     24 
     25 mod test_pub {
     26    chromium::import! {
     27        pub "//chromium/build/rust/chromium_prelude:import_test_lib" as library;
     28    }
     29 }
     30 
     31 fn main() {
     32    test_direct::import_test();
     33    test_as::import_test();
     34    test_pub::library::import_test_lib();
     35 }