1 // Copyright 2013 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.
5 #include "chrome/browser/install_verification/win/module_info.h"
7 #include "testing/gtest/include/gtest/gtest.h"
9 TEST(ModuleInfoTest
, TestCase
) {
10 ModuleInfo
foo(L
"foo", 0, 10);
11 ModuleInfo
bar(L
"bar", 5, 10);
15 ASSERT_EQ(L
"foo", foo
.name
);
16 ASSERT_TRUE(foo
.ContainsAddress(4));
17 ASSERT_TRUE(foo
.ContainsAddress(5));
18 ASSERT_TRUE(foo
.ContainsAddress(9));
19 ASSERT_FALSE(foo
.ContainsAddress(10));
20 ASSERT_FALSE(foo
.ContainsAddress(11));
22 ASSERT_FALSE(bar
.ContainsAddress(4));
23 ASSERT_TRUE(bar
.ContainsAddress(5));
24 ASSERT_TRUE(bar
.ContainsAddress(9));
25 ASSERT_TRUE(bar
.ContainsAddress(10));
26 ASSERT_TRUE(bar
.ContainsAddress(11));