• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 
5 #include "include/cef_api_hash.h"
6 #include "include/cef_version.h"
7 #include "tests/gtest/include/gtest/gtest.h"
8 
TEST(VersionTest,VersionInfo)9 TEST(VersionTest, VersionInfo) {
10   EXPECT_EQ(CEF_VERSION_MAJOR, cef_version_info(0));
11   EXPECT_EQ(CEF_VERSION_MINOR, cef_version_info(1));
12   EXPECT_EQ(CEF_VERSION_PATCH, cef_version_info(2));
13   EXPECT_EQ(CEF_COMMIT_NUMBER, cef_version_info(3));
14   EXPECT_EQ(CHROME_VERSION_MAJOR, cef_version_info(4));
15   EXPECT_EQ(CHROME_VERSION_MINOR, cef_version_info(5));
16   EXPECT_EQ(CHROME_VERSION_BUILD, cef_version_info(6));
17   EXPECT_EQ(CHROME_VERSION_PATCH, cef_version_info(7));
18 }
19 
TEST(VersionTest,ApiHash)20 TEST(VersionTest, ApiHash) {
21   EXPECT_STREQ(CEF_API_HASH_PLATFORM, cef_api_hash(0));
22   EXPECT_STREQ(CEF_API_HASH_UNIVERSAL, cef_api_hash(1));
23   EXPECT_STREQ(CEF_COMMIT_HASH, cef_api_hash(2));
24 }
25