Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: athena/activity/activity_manager_unittest.cc

Issue 617043002: Moving athena/test to athena/test/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | athena/athena.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// Copyright 2014 The Chromium Authors. All rights reserved. 1 /// Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "athena/activity/activity_manager_impl.h" 5 #include "athena/activity/activity_manager_impl.h"
6 6
7 #include "athena/activity/public/activity.h" 7 #include "athena/activity/public/activity.h"
8 #include "athena/activity/public/activity_factory.h" 8 #include "athena/activity/public/activity_factory.h"
9 #include "athena/test/athena_test_base.h" 9 #include "athena/test/base/athena_test_base.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
11 11
12 namespace athena { 12 namespace athena {
13 13
14 typedef test::AthenaTestBase ActivityManagerTest; 14 typedef test::AthenaTestBase ActivityManagerTest;
15 15
16 TEST_F(ActivityManagerTest, Basic) { 16 TEST_F(ActivityManagerTest, Basic) {
17 ActivityManagerImpl* activity_manager = 17 ActivityManagerImpl* activity_manager =
18 static_cast<ActivityManagerImpl*>(ActivityManager::Get()); 18 static_cast<ActivityManagerImpl*>(ActivityManager::Get());
19 ActivityFactory* factory = ActivityFactory::Get(); 19 ActivityFactory* factory = ActivityFactory::Get();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 EXPECT_EQ(activity1, manager->GetActivityForWindow(activity1->GetWindow())); 51 EXPECT_EQ(activity1, manager->GetActivityForWindow(activity1->GetWindow()));
52 EXPECT_EQ(activity2, manager->GetActivityForWindow(activity2->GetWindow())); 52 EXPECT_EQ(activity2, manager->GetActivityForWindow(activity2->GetWindow()));
53 53
54 EXPECT_EQ(NULL, manager->GetActivityForWindow(NULL)); 54 EXPECT_EQ(NULL, manager->GetActivityForWindow(NULL));
55 55
56 scoped_ptr<aura::Window> window = CreateTestWindow(NULL, gfx::Rect()); 56 scoped_ptr<aura::Window> window = CreateTestWindow(NULL, gfx::Rect());
57 EXPECT_EQ(NULL, manager->GetActivityForWindow(window.get())); 57 EXPECT_EQ(NULL, manager->GetActivityForWindow(window.get()));
58 } 58 }
59 59
60 } // namespace athena 60 } // namespace athena
OLDNEW
« no previous file with comments | « no previous file | athena/athena.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698