mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 09:37:37 +01:00
243a9c26d7
- Delete include/cef_runnable.h (issue #1336). - Build the cef_unittests target using all Chromium headers. Add a USING_CHROMIUM_INCLUDES define and libcef_dll_wrapper_unittests target to support this. This change avoids compile errors due to the divergence of CEF and Chromium base/ header implementations. The libcef_dll_wrapper sources must now compile successfully with both CEF and Chromium base/ headers (issue #1632). - The onbeforeunload message specified via JavaScript is no longer passed to the client (see http://crbug.com/587940).
22 lines
830 B
C++
22 lines
830 B
C++
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
|
|
#include "include/cef_version.h"
|
|
#include "testing/gtest/include/gtest/gtest.h"
|
|
|
|
TEST(VersionTest, VersionInfo) {
|
|
EXPECT_EQ(CEF_VERSION_MAJOR, cef_version_info(0));
|
|
EXPECT_EQ(CEF_COMMIT_NUMBER, cef_version_info(1));
|
|
EXPECT_EQ(CHROME_VERSION_MAJOR, cef_version_info(2));
|
|
EXPECT_EQ(CHROME_VERSION_MINOR, cef_version_info(3));
|
|
EXPECT_EQ(CHROME_VERSION_BUILD, cef_version_info(4));
|
|
EXPECT_EQ(CHROME_VERSION_PATCH, cef_version_info(5));
|
|
}
|
|
|
|
TEST(VersionTest, ApiHash) {
|
|
EXPECT_STREQ(CEF_API_HASH_PLATFORM, cef_api_hash(0));
|
|
EXPECT_STREQ(CEF_API_HASH_UNIVERSAL, cef_api_hash(1));
|
|
EXPECT_STREQ(CEF_COMMIT_HASH, cef_api_hash(2));
|
|
}
|