Home | History | Annotate | Download | only in base
      1 // Copyright 2018 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "mojo/public/cpp/base/unguessable_token_mojom_traits.h"
      6 #include "mojo/public/cpp/test_support/test_utils.h"
      7 #include "mojo/public/mojom/base/unguessable_token.mojom.h"
      8 #include "testing/gtest/include/gtest/gtest.h"
      9 
     10 namespace mojo_base {
     11 namespace unguessable_token_unittest {
     12 
     13 TEST(UnguessableTokenTest, UnguessableToken) {
     14   base::UnguessableToken in = base::UnguessableToken::Create();
     15   base::UnguessableToken out;
     16 
     17   ASSERT_TRUE(
     18       mojo::test::SerializeAndDeserialize<mojom::UnguessableToken>(&in, &out));
     19   EXPECT_EQ(in, out);
     20 }
     21 
     22 }  // namespace unguessable_token_unittest
     23 }  // namespace mojo_base