aurum: Use Aurum namespace 99/265399/6
authorWoochanlee <wc0917.lee@samsung.com>
Mon, 18 Oct 2021 07:28:04 +0000 (16:28 +0900)
committerWoochanlee <wc0917.lee@samsung.com>
Fri, 5 Nov 2021 01:36:07 +0000 (10:36 +0900)
This is for prepare Aurum 1.0 version release.

namespaces - Aurum for public classes
             AurumInternal for internal headers such as atspi, impl classes
             AurumInternal::Mock for Mock wrapper.

We will add more namespace if we added other back-end instead of ATSPI,
or other Node type needed.

Change-Id: Ia47ff40387d322e3e0932b3b0cda45b0d4a5f19a

67 files changed:
libaurum/inc/A11yEvent.h
libaurum/inc/Accessibility/AccessibleApplication.h
libaurum/inc/Accessibility/AccessibleNode.h
libaurum/inc/Accessibility/AccessibleWatcher.h
libaurum/inc/Accessibility/AccessibleWindow.h
libaurum/inc/Accessibility/IEventConsumer.h
libaurum/inc/Accessibility/IEventSource.h
libaurum/inc/Comparer.h
libaurum/inc/Impl/Accessibility/AtspiAccessibleApplication.h
libaurum/inc/Impl/Accessibility/AtspiAccessibleNode.h
libaurum/inc/Impl/Accessibility/AtspiAccessibleWatcher.h
libaurum/inc/Impl/Accessibility/AtspiAccessibleWindow.h
libaurum/inc/Impl/Accessibility/AtspiWrapper.h
libaurum/inc/Impl/Accessibility/MockAccessibleApplication.h
libaurum/inc/Impl/Accessibility/MockAccessibleNode.h
libaurum/inc/Impl/Accessibility/MockAccessibleWatcher.h
libaurum/inc/Impl/Accessibility/MockAccessibleWindow.h
libaurum/inc/Impl/MockDeviceImpl.h
libaurum/inc/Impl/TizenDeviceImpl.h
libaurum/inc/Interface/IDevice.h
libaurum/inc/Interface/ISearchable.h
libaurum/inc/Misc/Point2D.h
libaurum/inc/Misc/Rect.h
libaurum/inc/Misc/Size2D.h
libaurum/inc/Misc/bitmask.h
libaurum/inc/PartialMatch.h
libaurum/inc/Runnable/Runnable.h
libaurum/inc/Runnable/SendKeyRunnable.h
libaurum/inc/Sel.h
libaurum/inc/UiDevice.h
libaurum/inc/UiObject.h
libaurum/inc/UiScrollable.h
libaurum/inc/UiSelector.h
libaurum/inc/Until.h
libaurum/inc/Waiter.h
libaurum/src/A11yEvent.cc
libaurum/src/Accessibility/AccessibleApplication.cc
libaurum/src/Accessibility/AccessibleNode.cc
libaurum/src/Accessibility/AccessibleWatcher.cc
libaurum/src/Accessibility/AccessibleWindow.cc
libaurum/src/Comparer.cc
libaurum/src/Impl/Accessibility/AtspiAccessibleApplication.cc
libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc
libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc
libaurum/src/Impl/Accessibility/AtspiAccessibleWindow.cc
libaurum/src/Impl/Accessibility/AtspiWrapper.cc
libaurum/src/Impl/Accessibility/MockAccessibleApplication.cc
libaurum/src/Impl/Accessibility/MockAccessibleNode.cc
libaurum/src/Impl/Accessibility/MockAccessibleWatcher.cc
libaurum/src/Impl/Accessibility/MockAccessibleWindow.cc
libaurum/src/Impl/MockDeviceImpl.cc
libaurum/src/Impl/TizenDeviceImpl.cc
libaurum/src/PartialMatch.cc
libaurum/src/Runnable/SendKeyRunnable.cc
libaurum/src/Sel.cc
libaurum/src/UiDevice.cc
libaurum/src/UiObject.cc
libaurum/src/UiScrollable.cc
libaurum/src/UiSelector.cc
libaurum/src/Until.cc
libaurum/src/Waiter.cc
org.tizen.aurum-bootstrap/inc/ObjectMapper.h
tests/Test_Misc.cc
tests/Test_Sel.cc
tests/Test_UiDevice.cc
tests/Test_UiObject.cc
tests/Test_UiSelector.cc

index f7b23bdfb2b6a5bc5a9ff4a81c634431804e7b22..c5579795410cea181d9facf14b10b6bdf0d4ea92 100644 (file)
@@ -21,6 +21,8 @@
 #include "bitmask.h"
 #include <string>
 
+namespace Aurum {
+
 /**
  * @class A11yEvent
  *
@@ -144,4 +146,6 @@ protected:
     const std::string mPkg;
 };
 
+}
+
 #endif
index 097d141a8736ee0ae5172be97a00f875f43e5157..3a6daa0ec218ffb3de54813008697f3e0abd8e4f 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <memory>
 
+namespace Aurum {
+
 /**
  * @class AccessibleApplication
  *
@@ -98,4 +100,6 @@ private:
     std::shared_ptr<AccessibleNode> mNode;
 };
 
+}
+
 #endif
index a6956a404d9cf8a66f2a04967aa9eedd9c82ed98..b8b8d12c0c1cad953f820541df356fb16b0d4ce7 100644 (file)
@@ -28,6 +28,8 @@
 #include "Rect.h"
 #include "config.h"
 
+namespace Aurum {
+
 /**
  * @brief AccessibleNodeInterface enum class
  *
@@ -424,4 +426,6 @@ private:
     mutable std::mutex mLock;
 };
 
+}
+
 #endif
index d2977f2e9be9a1b6af71f3b8c601847ba2d646c8..cfaf72b39e8dcaa81c2300e83c92f1bdcace465f 100644 (file)
@@ -33,6 +33,8 @@
 
 #include "config.h"
 
+namespace Aurum {
+
 /**
  * @class AccessibleWatcher
  *
@@ -146,4 +148,6 @@ private:
     std::mutex mLock;
 };
 
+}
+
 #endif
index f422d68ed3bd80ff1e29d008919a0d7774659122..3d2c25832ed52831b53db5425b3ac18ccd71bc56 100644 (file)
@@ -23,6 +23,8 @@
 #include <string>
 #include <memory>
 
+namespace Aurum {
+
 class AccessibleApplication;
 
 /**
@@ -103,4 +105,6 @@ private:
     std::shared_ptr<AccessibleNode> mNode;
 };
 
+}
+
 #endif
index d8cd29adc9373dc10ac25d052ddb8a0f2dde713c..b7c0557ebddaa52fd2731b9d633c7edfd1132b69 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef _IEVENT_CONSUMER_H_
 #define _IEVENT_CONSUMER_H_
 
+namespace Aurum {
+
 /**
  * @class EventType
  *
@@ -71,4 +73,6 @@ public:
     virtual void notify(int type1, int type2, void *src) = 0;
 };
 
+}
+
 #endif
index d1f6ce426f7d8ae1aec9edb6466e87d3d3416821..73f5c349992a733a65e2441109ee2637d1cd5fd1 100644 (file)
@@ -21,6 +21,8 @@
 #include "IEventConsumer.h"
 #include <memory>
 
+namespace Aurum {
+
 /**
  * @class IEventSource
  *
@@ -68,4 +70,6 @@ public:
     virtual void notifyAll(int type1, int type2, void *src) = 0;
 };
 
+}
+
 #endif
index ae1ccab627f7c43b1343087f301e83706e1dc22f..c64afebf5ee8e1d0ed3b09f593e5d6c1333fab4f 100644 (file)
@@ -30,6 +30,8 @@
 #include <memory>
 #include <vector>
 
+namespace Aurum {
+
 /**
  * @class Comparer
  *
@@ -127,4 +129,6 @@ private:
     bool mEarlyReturn;
 };
 
+}
+
 #endif
index a6cdb80cd70aef0f3c129479aa7be78793d23894..2bdcbacbcd329a2cd151301602b038b8d7ca759f 100644 (file)
 #include <memory>
 #include <atspi/atspi.h>
 
+using namespace Aurum;
+
+namespace AurumInternal {
+
 /**
  * @internal
  *
@@ -63,4 +67,6 @@ public:
     std::string getPackageName(void) override;
 };
 
+}
+
 #endif
index b916c1b3bf5578c0fed2d7ea22327513d4946f20..2935faa414e854cf0044ec216c9da77653f4ddad 100644 (file)
 #include "AccessibleNode.h"
 #include <atspi/atspi.h>
 
+using namespace Aurum;
+
+namespace AurumInternal {
+
 /**
  * @brief AtspiAccessibleNode is inherited from AccessibleNode class.
  *        It manages object informations which from atspi server.
@@ -144,4 +148,6 @@ private:
     AtspiAccessible *mNode;
 };
 
+}
+
 #endif
index f4ed61ff2ae8b6499355823c660f232ae2edf22a..8ce234b029fbd28ce65d72db49563668bae64a24 100644 (file)
 #include <set>
 #include <map>
 
+using namespace Aurum;
+
+namespace AurumInternal {
+
 /**
  * @internal
  *
@@ -157,4 +161,6 @@ private:
     static std::mutex mMutex;
 };
 
+}
+
 #endif
index e9d6f713955dd3308e3893025aebb84ef8d88633..1e71af396d7b516425d80a0211fd3c5d445c7778 100644 (file)
 
 #include "AccessibleWindow.h"
 
+using namespace Aurum;
+
+namespace AurumInternal {
+
 /**
  * @internal
  *
@@ -50,4 +54,6 @@ public:
 
 };
 
+}
+
 #endif
index ee603d683fc75647867b36703342361c86f70468..b3928fbd04bc6a741e017437998f76f72091d07c 100644 (file)
@@ -21,6 +21,8 @@
 #include <atspi/atspi.h>
 #include <mutex>
 
+namespace AurumInternal {
+
 /**
  * @internal
  *
@@ -61,4 +63,6 @@ private:
     static std::recursive_mutex mMutex;
 };
 
+}
+
 #endif
index c2e03e8304e7d42b441c03a46b738ff905fd36c8..942e779fb02ef7546185fd39d66fdb3221774fe1 100644 (file)
 
 #include <memory>
 
+using namespace Aurum;
+
+namespace AurumInternal {
+
+namespace Mock {
+
 class MockAccessibleApplication : public AccessibleApplication, public std::enable_shared_from_this<MockAccessibleApplication> {
 public:
     /**
@@ -83,4 +89,8 @@ private:
     std::vector<std::shared_ptr<AccessibleWindow>> mWindowList;
 };
 
+}
+
+}
+
 #endif
index 67cde40ecd8ea67b0e2b050af9ec9c8735cbbc91..110b6e14f41084c05b8e3df9eb54845914e2c764 100644 (file)
 #include <mutex>
 #include <set>
 
+using namespace Aurum;
+
+namespace AurumInternal {
+
+namespace Mock {
+
 class MockAccessibleNode : public AccessibleNode {
 public:
     /**
@@ -202,4 +208,8 @@ private:
     std::mutex                            mLock;
 };
 
+}
+
+}
+
 #endif
index 18dd60d1c847b108eef2fa6d3574b9d346612e19..b36381ae2916fbb2d41a992b178702382d623e57 100644 (file)
 #include <memory>
 #include <vector>
 
+using namespace Aurum;
+
+namespace AurumInternal {
+
+namespace Mock {
+
 class MockAccessibleWatcher : public AccessibleWatcher {
 public:
     /**
@@ -91,4 +97,8 @@ private:
     std::map<AtspiAccessible *, std::shared_ptr<AccessibleApplication>> mActiveAppMap;
 };
 
+}
+
+}
+
 #endif
index a97808923ae40f3bcc0ecbf6e86fc6e29075721b..df214efc0700c798e05c913790ed59a1a14f10da 100644 (file)
 #include "AccessibleWindow.h"
 #include "MockAccessibleNode.h"
 
+using namespace Aurum;
+
+namespace AurumInternal {
+
+namespace Mock {
+
 class MockAccessibleApplication;
 
 class MockAccessibleWindow : public AccessibleWindow {
@@ -51,4 +57,8 @@ private:
     std::shared_ptr<MockAccessibleNode> mMockNode;
 };
 
+}
+
+}
+
 #endif
\ No newline at end of file
index 93705c1a81035fb5f0251cf270f63f8d8aab41ff..75174713c6eab8cb8d00548741bf034fd0095da9 100644 (file)
 #include <vector>
 #include <map>
 
+using namespace Aurum;
+
+namespace AurumInternal {
+
+namespace Mock {
+
 enum class MockKeyType {
     BACK,
     HOME,
@@ -294,4 +300,8 @@ public:
     Size2D<int> mScreenSize;
 };
 
+}
+
+}
+
 #endif
index 0bcbff93fe038cc57c9121f70c1522df13b22da4..4e163779c0f0b9cb77148efa8f1f3af46bdf6563 100644 (file)
 #include <set>
 #include <efl_util.h>
 
+using namespace Aurum;
+
+namespace AurumInternal {
+
 class TizenDeviceImpl : public IDevice {
 public:
     TizenDeviceImpl();
@@ -198,4 +202,6 @@ private:
     Size2D<int> mScreenSize;
 };
 
+}
+
 #endif
\ No newline at end of file
index 85b213e2c4502209d983046df2341b79c7266966..5d979d6e9c97597bc2f40adb2cc5b6246d094ed0 100644 (file)
 #define _IDEVICE_H_
 
 #include "config.h"
-#include "Rect.h"
 #include "Size2D.h"
 #include <string>
 
+namespace Aurum {
+
 /**
  * @brief TimeRequestType enum class.
  *
@@ -277,4 +278,6 @@ public:
     virtual const Size2D<int> getScreenSize() = 0;
 };
 
+}
+
 #endif
index fe25b09c07e56f75c20b16fe8718ffc9e4feafce..e02bbcfc089bf0bf178d19a4705d7cca893ad511 100644 (file)
@@ -25,6 +25,8 @@
 #include <memory>
 #include <vector>
 
+namespace Aurum {
+
 class UiObject;
 
 /**
@@ -79,4 +81,6 @@ public:
         const std::shared_ptr<UiSelector> selector) const = 0;
 };
 
+}
+
 #endif
index 1baddb951cf8ed3713764d456f8f8f8dfe7ec808..634d779379651f438970e2dc094c7e952299d011 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef _POINT2D_H_
 #define _POINT2D_H_
 
+namespace Aurum {
+
 /**
  * @class Point2D
  *
@@ -94,4 +96,6 @@ public:
     T y;
 };
 
+}
+
 #endif
index 598467076f33b82d4a53305cbf4dfe828184276c..9d935ed86c48dba6325f8e62fa60d55c4926db1e 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "Point2D.h"
 
+namespace Aurum {
+
 /**
  * @class Rect
  *
@@ -141,4 +143,6 @@ public:
     Point2D<T> mBottomRight;
 };
 
+}
+
 #endif
index c8e145911937b8a46611aeda25af46a27084c82d..e44ef044625432383697c3878d8c21549899c906 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef _SIZE2D_H_
 #define _SIZE2D_H_
 
+namespace Aurum {
+
 /**
  * @brief Size2D Class.
  *        This class for represent specific obejct's size as width and height.
@@ -80,4 +82,6 @@ public:
     T height;
 };
 
+}
+
 #endif
index bcbca847744b55e3765878856ea063fc74d81027..cbfef0bbb772e60f261fed15278ddc6dc38edf51 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <type_traits>
 
+namespace Aurum {
+
 template<typename E>
 struct enable_bitmask_operators{
     static const bool enable=false;
@@ -89,4 +91,6 @@ operator^=(E& lhs,E rhs){
     return lhs;
 }
 
+}
+
 #endif
index bb8fb443ac14bf0d1504c241e4c3d9cb549fa2e3..10fb59f5eb01aeaf15b4ab4b7a8e1fd20e5b40bd 100644 (file)
@@ -25,6 +25,8 @@
 #include "AccessibleNode.h"
 #include "UiSelector.h"
 
+namespace Aurum {
+
 /**
  * @class PartialMatch
  *
@@ -165,4 +167,6 @@ private:
     std::list<std::shared_ptr<PartialMatch>> mPartialMatches;
 };
 
+}
+
 #endif
index 22b7723bc2303e5155dc23f9eaa4ad3ea016c4b3..b6b14f247c3c0eaeac52efc11cab5398f55b4d2b 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef _RUNNABLE_H_
 #define _RUNNABLE_H_
 
+namespace Aurum {
+
 /**
  * @class Runnable
  *
@@ -43,4 +45,6 @@ public:
     virtual void run() const = 0;
 };
 
+}
+
 #endif
index 91f80dc22ed86471fe6cbfe369ad525a1e7c2265..115166f06f4cb764026b802dd2dc75b18eb45677 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "Runnable.h"
 
+namespace Aurum {
+
 /**
  * @class SendKeyRunnable
  *
@@ -49,4 +51,6 @@ public:
     void run() const override;
 };
 
+}
+
 #endif
index 9d75ab01f867d8d9a355d454ca10028edcd13510..ae052d7f83a62a9635794fa2eba303412aa4a6e2 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "UiSelector.h"
 
+namespace Aurum {
+
 /**
  * @class Sel
  *
@@ -80,4 +82,6 @@ public:
     static std::shared_ptr<UiSelector> depth(int depth);
 };
 
+}
+
 #endif
index f3ddcbb7ccc543c858e8f580f15b7a37bf1807f8..2e5a3ffa34b8ecbc9bc9f26fe715f29344478a6e 100644 (file)
@@ -35,6 +35,8 @@
 #include <functional>
 #include <string>
 
+namespace Aurum {
+
 /**
  * @class UiDevice
  *
@@ -403,4 +405,6 @@ private:
     const Waiter *mWaiter;
 };
 
+}
+
 #endif
index b725b7d8bf4a2a0d468577b08b775e189ede96ee..08b3a3d138cd06fd39afdf7ee8ed576a06aa4c51 100644 (file)
@@ -28,6 +28,8 @@
 #include <memory>
 #include <vector>
 
+namespace Aurum {
+
 class UiDevice;
 
 /**
@@ -511,4 +513,6 @@ private:
     static const unsigned int LOGNCLICK_INTERVAL = 500;
 };
 
+}
+
 #endif
index 090e74676315c905b22268dd4c0bfe9dc16beda0..0e27e81c19355049a972fcb0270951efa37999de 100644 (file)
@@ -20,6 +20,9 @@
 
 #include "UiObject.h"
 #include <memory>
+
+namespace Aurum {
+
 /**
  * @brief UiScrollable class
  * @since_tizen 5.5
@@ -96,4 +99,6 @@ private:
     int mScrollStep;
 };
 
+}
+
 #endif
index 37ade0c20dd186cf4b014098464dd0a25047ca10..25ef153dd3eb3f7219ad381b9338db97d28e6967 100644 (file)
@@ -24,6 +24,8 @@
 #include <vector>
 #include <memory>
 
+namespace Aurum {
+
 /**
  * @class UiSelector
  *
@@ -383,4 +385,6 @@ public:
     std::shared_ptr<UiSelector> mParent;
 };
 
+}
+
 #endif
index a67e45f3e7be29aee94ea62c3db534d29767a229..167ff4837ab95a581c88563f86308b38da777233 100644 (file)
@@ -22,6 +22,8 @@
 #include "ISearchable.h"
 #include "UiSelector.h"
 
+namespace Aurum {
+
 /**
  * @class Until
  *
@@ -115,4 +117,6 @@ public:
         const bool isCheckable);
 };
 
+}
+
 #endif
index 5c0c935a0896431d5159b8cdeabe0af3f695fa8c..6f5a64720cf54e09e2cbe0fb94d9f9a64088a739 100644 (file)
@@ -22,6 +22,8 @@
 
 #include <functional>
 
+namespace Aurum {
+
 /**
  * @class Waiter
  *
@@ -90,4 +92,6 @@ private:
     const int          WAIT_TIMEOUT_MS;
 };
 
+}
+
 #endif
index b9f205bca3913ae66c56fe0291578bb640dd99e6..86f5d6c1b92eec2fec7ffa412b9ebf974383d56f 100644 (file)
@@ -19,6 +19,8 @@
 
 #include <unordered_map>
 
+using namespace Aurum;
+
 A11yEventInfo::A11yEventInfo() : A11yEventInfo(A11yEvent::EVENT_NONE, nullptr, nullptr) {}
 
 A11yEventInfo::~A11yEventInfo() {}
index 127e9956de5f4912bdf7c501f5d30c0ac1c6cc0f..bbccc78519ee5eda2e6570fa10a9fcead92fe8ad 100644 (file)
@@ -19,6 +19,8 @@
 
 #include <algorithm>
 
+using namespace Aurum;
+
 AccessibleApplication::AccessibleApplication(std::shared_ptr<AccessibleNode> node)
 : mNode{node}
 {
index 45c3993ec0836e48aa5545ecfdd065631659fa0a..d4bfb689d276f79aee5376734bf65ed661b2c46e 100644 (file)
@@ -24,6 +24,8 @@
 #include "config.h"
 #include <sstream>
 
+using namespace Aurum;
+
 AccessibleNode::~AccessibleNode()
 {
 }
index 5b6bc3ad8ac7ccf3c6c395b0711b10cf0c6ad70f..d26461d88595d4a9e846c6b979a83e82befd877b 100644 (file)
@@ -27,6 +27,9 @@
 #include <utility>
 #include <algorithm>
 
+using namespace Aurum;
+using namespace AurumInternal;
+
 AccessibleWatcher::AccessibleWatcher()
 :mSources{}, mLock{}
 {
index ea2315cbc8539a3163d80702866fe8f3503cc8a4..c2bc794c5f6c1a6622f1fb30cf02d6e13889a869 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "Aurum.h"
 
+using namespace Aurum;
+
 AccessibleWindow::AccessibleWindow(std::shared_ptr<AccessibleApplication> app, std::shared_ptr<AccessibleNode> node)
 : mApp{app}, mNode{node}
 {
index f5ebdf26a16a4589a797487342b2807a59604a42..634d2e234a676500b2f89740404864dcc645c36e 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "Aurum.h"
 
+using namespace Aurum;
+
 Comparer::Comparer(const std::shared_ptr<UiDevice> device, const std::shared_ptr<UiSelector> selector,
                    const bool &earlyReturn)
     : mDevice(device), mSelector(selector), mEarlyReturn(earlyReturn)
index 4cd13276f1ae25092c08c64e20c3fffd519094a2..6850096a794c9014f20fc17bda51928f9c1944e5 100644 (file)
@@ -22,6 +22,9 @@
 #include <algorithm>
 #include <vector>
 
+using namespace Aurum;
+using namespace AurumInternal;
+
 AtspiAccessibleApplication::AtspiAccessibleApplication(std::shared_ptr<AccessibleNode> node)
 : AccessibleApplication(node)
 {
index 6a0575dcccf12693491b602faa4d8eb75c45fc50..13d9373764a622f5078f8d7507c68496884937ee 100644 (file)
@@ -22,6 +22,9 @@
 
 #include <gio/gio.h>
 
+using namespace Aurum;
+using namespace AurumInternal;
+
 AtspiAccessibleNode::AtspiAccessibleNode(AtspiAccessible *node)
 : mNode{node}
 {
index a167104dec33c49308ae7bc9def6c030d1694b7a..2c14713717c24e641632c04eafdf1229eb0892fb 100644 (file)
@@ -28,6 +28,9 @@
 #include <thread>
 #include <iostream>
 
+using namespace Aurum;
+using namespace AurumInternal;
+
 #define COMPARE(A, B) \
     (B != A11yEvent::EVENT_NONE) && ((A & B) == B)
 
index 6968cae08240cca676f25fa9b445804a196c70de..053fcef53716113faec9884ba5624335e754730e 100644 (file)
@@ -18,6 +18,9 @@
 #include "AtspiAccessibleWindow.h"
 #include "AtspiWrapper.h"
 
+using namespace Aurum;
+using namespace AurumInternal;
+
 AtspiAccessibleWindow::AtspiAccessibleWindow(std::shared_ptr<AccessibleApplication> app, std::shared_ptr<AccessibleNode> node)
 : AccessibleWindow(app, node)
 {
index fdf6e266659b9c7e89697d35370a88fd7029e88d..f41b7f07ebcb2ca059859a5ea6346320793b670c 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "AtspiWrapper.h"
 
+using namespace AurumInternal;
+
 std::recursive_mutex AtspiWrapper::mMutex = std::recursive_mutex{};
 
 GArray *AtspiWrapper::Atspi_state_set_get_states(AtspiStateSet *set)
index e01ee5c41c45a7c58c7311c63b42464b557691e0..efe80fac7e5a2c861e404eb7327fffff9b7fbcb7 100644 (file)
@@ -21,6 +21,9 @@
 
 #include <algorithm>
 
+using namespace Aurum;
+using namespace AurumInternal::Mock;
+
 MockAccessibleApplication::MockAccessibleApplication(std::shared_ptr<AccessibleNode> node)
 : AccessibleApplication(node), mWindowList{}
 {
index 795c8e79da71a549c054d0a63f1f5717ec1d0357..5497dc214ea95f000eb1f7e789d2e217646990a1 100644 (file)
@@ -21,6 +21,9 @@
 #include <algorithm>
 #include <iostream>
 
+using namespace Aurum;
+using namespace AurumInternal::Mock;
+
 MockAccessibleNode::MockAccessibleNode(std::shared_ptr<AccessibleNode> parent, std::string text, std::string pkg, std::string role, std::string res, std::string type, std::string style,std::string automationId,  Rect<int> screenBoundingBox, int supportingIfaces,int featureProperty)
 : mParentNode(parent), mChildrenList{}, mActionSet{}
 {
index 05fec2f5e6dbae99d9001deadb73e2ef8254d1e2..52f53737a7cd898bc797aa0065f796ad3f55524e 100644 (file)
@@ -20,6 +20,9 @@
 #include "MockAccessibleApplication.h"
 #include "MockAccessibleNode.h"
 
+using namespace Aurum;
+using namespace AurumInternal::Mock;
+
 MockAccessibleWatcher::MockAccessibleWatcher()
 {
 }
index 9941ac482f1dd5f8c51bd1fbcbc9c96c6a4770ee..f20b35124c6894a2c6365fe4acdd60d7ff7b2dbb 100644 (file)
@@ -19,6 +19,9 @@
 #include "MockAccessibleApplication.h"
 #include "MockAccessibleNode.h"
 
+using namespace Aurum;
+using namespace AurumInternal::Mock;
+
 MockAccessibleWindow::MockAccessibleWindow(std::shared_ptr<MockAccessibleApplication> app, std::shared_ptr<MockAccessibleNode> node)
 : AccessibleWindow(app, node), mMockNode{node}
 {
index e05ceee632dd7a8e579e28aa9c0c800e66e31131..629329cedd3ed0efee91006a0694944073260f3c 100644 (file)
@@ -34,6 +34,9 @@
 #include <chrono>
 #include <thread>
 
+using namespace Aurum;
+using namespace AurumInternal::Mock;
+
 #define NANO_SEC 1000000000.0
 #define MICRO_SEC 1000000
 
index a5ffd0193ed38c1e25786a98cd8d8efc02f5b8ea..1040f5cf924516e5d5fedd8c91e15d55c91ae4c3 100644 (file)
@@ -32,6 +32,9 @@
 #include <tbm_surface.h>
 #include <system_info.h>
 
+using namespace Aurum;
+using namespace AurumInternal;
+
 #define NANO_SEC 1000000000.0
 #define MICRO_SEC 1000000
 
index 3b3e4eba3acf2e9cf8360622e3a978245ff8683f..796c8693d3649b6ddcb7d30009581ebb2956406c 100644 (file)
@@ -22,6 +22,8 @@
 #include <regex>
 #include <sstream>
 
+using namespace Aurum;
+
 bool PartialMatch::checkCriteria(const std::string textA, const std::string textB)
 {
     std::regex re(textA);
index 3044426acc5bef7d0fa05e33a5e0c59d116a801f..a7e6ca57e10916de109427e75dc8372c1e61d5e0 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "Aurum.h"
 
+using namespace Aurum;
+
 SendKeyRunnable::SendKeyRunnable(std::string keycode)
     : mKeycode{keycode}
 {
index 484ffca4694cbfd15adadd3048c2aeb3a0d2624d..282f28d09033d153629f53ab2e6f2d065bd3f10d 100644 (file)
@@ -18,6 +18,8 @@
 #include "Aurum.h"
 #include <utility>
 
+using namespace Aurum;
+
 std::shared_ptr<UiSelector> Sel::text(std::string text)
 {
     std::shared_ptr<UiSelector> sel = std::make_shared<UiSelector>();
index 5643f3aaac825a60c0ad206b297da00032babdc4..bafa6d7233bc976501ad4c91122c49fe03e9db72 100644 (file)
@@ -30,6 +30,9 @@
 #include <algorithm>
 #include <iostream>
 
+using namespace Aurum;
+using namespace AurumInternal;
+
 UiDevice::UiDevice() : UiDevice(nullptr) {}
 
 UiDevice::UiDevice(IDevice *impl)
index 101f90f46fd9fd25710ad61e6807ec63495d5b90..7d4ebccd2410cfdc3e1feb2209a1fa191ba966e6 100644 (file)
@@ -23,6 +23,8 @@
 #include <chrono>
 #include <thread>
 
+using namespace Aurum;
+
 UiObject::UiObject() : UiObject(nullptr, nullptr, nullptr) {}
 
 UiObject::~UiObject()
index 9a2eb57a06fcf1d3ea800abc2ed6030159e0efb8..c2c7aa36ace4414c084f408c4e70c01cd04a7903 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "Aurum.h"
 
+using namespace Aurum;
+
 UiScrollable::UiScrollable(std::shared_ptr<UiSelector> selector)
 : mSelector{selector}, mMaxSearchSwipe{100}, mScrollStep{50}
 {
@@ -54,7 +56,6 @@ bool UiScrollable::scrollForward()
 
 bool UiScrollable::scrollForward(int steps)
 {
-
     //TODO Check Scree Size here
     return true;
 
index 9f7b9bdbe96b56c7408d32c41af04fafe45b0472..25af9e89fe96a06bb83503a032a434685e96d67d 100644 (file)
@@ -19,6 +19,8 @@
 #include <string>
 #include <sstream>
 
+using namespace Aurum;
+
 UiSelector::UiSelector()
 : mId{}, mAutomationId{}, mRole{}, mText{}, mPkg{}, mType{}, mStyle{},
   mMatchId{}, mMatchAutomationId{}, mMatchRole{}, mMatchText{}, mMatchPkg{}, mMatchType{}, mMatchStyle{},
index c6951c5a377575ba46e76cd7d6708e618f0cdeb9..3a3083158b132fa382f483d6a361a699dfd09103 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "Aurum.h"
 
+using namespace Aurum;
+
 std::function<bool(const ISearchable *)> Until::hasObject(
     const std::shared_ptr<UiSelector> selector)
 {
index 6b852d0300b3a880f87db61a829a646ca822711a..43c819478619e603ca9ffb0fcc49a2f523d6cc13 100644 (file)
@@ -20,6 +20,8 @@
 #include <chrono>
 #include <thread>
 
+using namespace Aurum;
+
 Waiter::Waiter() : Waiter(nullptr) {}
 
 Waiter::~Waiter() {}
index 83262665e36bf7e1c0e5c9870ebab1fb5e535682..6bf7af7deb31beef3d022ea7a8d39af3c2c22629 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "UiObject.h"
 
+using namespace Aurum;
+
 class ObjectMapper {
 private:
     std::map<std::string, std::shared_ptr<UiObject>> mObjectMap;
index d6793f73afcebb341ff0e2c8b48002ca533ef42c..99e6a63e2119f1a9d70879af8f51b9c4d4a48392 100644 (file)
@@ -15,7 +15,6 @@
 #include "MockAccessibleWindow.h"
 #include "MockAccessibleNode.h"
 
-
 class AurumTestMisc : public ::testing::Test {
     public:
         AurumTestMisc(){
index cef1c7f6598d9e028861167594d146b0aec0f26f..b9ff53bd9140a279e4fdbafc6884116835f6ae58 100644 (file)
@@ -15,6 +15,8 @@
 #include "MockAccessibleWindow.h"
 #include "MockAccessibleNode.h"
 
+using namespace Aurum;
+using namespace AurumInternal::Mock;
 
 class AurumTestSel : public ::testing::Test {
     public:
index b46b312665e311fd0cbe303da9b5f7fff6bfea13..4e092367f968c9db279bd7b2e190a135691a5593 100644 (file)
@@ -18,6 +18,8 @@
 #include "MockAccessibleWindow.h"
 #include "MockAccessibleNode.h"
 
+using namespace Aurum;
+using namespace AurumInternal::Mock;
 
 class AurumTestUiDevice : public ::testing::Test {
     public:
index 6820f9366ebb16f8ee6c65f7eaecb3a74a37da43..9f20ca81a61afd455aa87322deb6264254cc4125 100644 (file)
@@ -19,6 +19,8 @@
 #include "MockAccessibleWindow.h"
 #include "MockAccessibleNode.h"
 
+using namespace Aurum;
+using namespace AurumInternal::Mock;
 
 class AurumTestUiObject : public ::testing::Test {
     public:
index 3e2c79c3dec6a2953b81170022317f587e505157..bdf6861788311f509c0abe235f15b2320716344f 100644 (file)
 #include <iostream>
 #include <algorithm>
 
-
-
 #include "MockAccessibleWatcher.h"
 #include "MockAccessibleApplication.h"
 #include "MockAccessibleWindow.h"
 #include "MockAccessibleNode.h"
 
+using namespace Aurum;
+using namespace AurumInternal::Mock;
 
 class AurumTestUiSelector : public ::testing::Test {
     public: